I'm starting the longish process of ripping my CD collection. I've got abcde installed with the config from Andrew's Corner. It seems to be working ok but when the metadata fetch fails, the MP3s get written as Unknown Artist and Unknown Album. Which isn't a problem until the second metadata fetch fails. Then the tracks get overwritten. What would be ideal is that the second album gets a number on the name like "Unknown Album 2". Any suggestions on how to accomplish this? Or how to keep the directories from being ovewritten?
You could automate the process by wrapping the abcde
with a script that invokes abcde
and checks for 'Unknown Artist/Unknown Album' directory existence after abcde
completion.
If the test shows that directory exists then rename it with a name that includes the disk CDDB ID which you can get with cd-discid tool. This script obtains the ID early, otherwise auto-eject prevents obtaining the ID after abcde has completed.
#!/bin/bash
id=$(cd-discid /dev/cdrom)
abcde $@ || exit 1
if [ -d "Unknown Artist/Unknown Album" ]; then
mv "Unknown Artist/Unknown Album" \
"Unknown Artist/Unknown Album $id"
fi
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments