How do I prevent my cd ripper from overwriting Unknown Album when metadata can't be found

hofo

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?

Serge

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.

edited at
0

Comments

0 comments
Login to comment

Related

How can I prevent from overwriting my changed data during an update in TYPO3?

How do I prevent characters from the previous line from appearing when overwriting it in Rust?

How can I prevent Windows from overwriting GRUB when using a dual-boot machine

How do I prevent tar from overwriting an existing archive?

How do I prevent a UINavigationController from recognising swipes when my scroll view isn't at the far left?

How do I prevent apt/apt-get from cancellng download of multiple packages if one of them can't be found

How do I prevent Maven from downloading maven-metadata.xml for an artifact that I already have in my repo?

How do I prevent 'cd' command from going to home directory?

How do I stop Debian from overwriting /etc/resolv.conf and overwriting my VPN's nameservers?

How can I prevent all of my flex-items from resizing when I resize my window?

How can I prevent my text from showing under my header when scrolling?

How can I prevent a js function from running when a searched after getElementById cannot be found?

How can I prevent Windows from disabling Aero when I use my secondary monitor?

How can I prevent my values from restarting when I receive a post request?

How can I prevent my text from being pushed up when I add more content?

How can I prevent update-grub from overwriting existing bootloader?

How can I prevent players from overwriting one another in tic tac toe?

How can I prevent a second user from overwriting an entity property(column) in EF Core?

How do i prevent behaviorsubject next() calls from overwriting each other?

How do I prevent an excel table's formatting from overwriting a range's existing formatting in VBA?

How Do I Prevent copyValuesToRange from Overwriting Destination with Blank or Null Data

How can I run an executable from a CD when it doesn't have the executable bit set?

How do I prevent my logos from disappearing when I toggle my menu to close and resize my window?

How do i can check if my post string contains a symbol and prevent from proceeding

How can I prevent my form from vertically stretching when "live"?

How can I prevent systemd from freezing my system when Flash dies?

How can I prevent this from running on my screen reader when input is empty?

How can I prevent the debugger from entering my method when Exception is thrown?

How can I prevent my python program from loading when using pyngrok?