Skip to content

Instantly share code, notes, and snippets.

@dedeibel
Created October 25, 2019 21:05
Show Gist options
  • Save dedeibel/cf9abc7462d7e9e7dbae68ce0e545c40 to your computer and use it in GitHub Desktop.
Save dedeibel/cf9abc7462d7e9e7dbae68ce0e545c40 to your computer and use it in GitHub Desktop.
Update audio albums cover art
# delete all images and other stuff - make sure you check the filter
find . -type f -not -iname "*.mp3" -delete
# do some name cleaning
find . -name "*MP3" -exec rename "s/(.*)\.MP3$/\$1.mp3/" "{}" \;
# find new cover art
sacad_r . 300 AlbumArt.jpg 2>&1 | tee /tmp/coverlog.txt
# remove old embedded images
eyeD3 --remove-all-images .
# embed the new images as front cover
find . -type d -exec bash -c "set -e ; cd '"{}"' ; eyeD3 --add-image=AlbumArt.jpg:FRONT_COVER ." \;\n
easytag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment