Last active
January 4, 2016 00:19
-
-
Save policecar/8541160 to your computer and use it in GitHub Desktop.
Strip unwanted Amazon COMM ID3 tags from your music.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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