Skip to content

Instantly share code, notes, and snippets.

@policecar
Last active January 4, 2016 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save policecar/8541160 to your computer and use it in GitHub Desktop.
Save policecar/8541160 to your computer and use it in GitHub Desktop.
Strip unwanted Amazon COMM ID3 tags from your music.
# Minimal script to remove Amazon's ID3 tags from your music: amazon -> uozewe ^^ ( h/t plinz )
# Requirements: id3v2, eyeD3(-2.7)
# Version: 0.1 alpha
# Author: priska
#
# Process: migrates ID3v1 tags to ID3v2, then removes incorrigible IDv1 tags like Amazon's ID3v1 COMM,
# finally removes the IDv2 COMM tag; preserves the original timestamp.
# Tested with: id3info ./* | grep -i amazon
tmpfile=`mktemp usinikimbilie` ;
find . -type f -iname "*.mp3" | while read fname ; do {
touch -r "$fname" "$tmpfile" ;
eyeD3-2.7 --to-v2.3 "$fname" ;
eyeD3-2.7 --remove-v1 "$fname" ;
id3v2 -r COMM "$fname" ;
touch -r "$tmpfile" "$fname" ;
} done
rm "$tmpfile" ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment