Hi there,
I just encountered a strange problem. I wrote a little script that creates playlist based on the genre of an mp3 file. It worked fine on some test files, but when I unleashed it on my real mp3 library it did not work. Basically the id3v2 command list option output suddenly changed, so my regex did not work any more.
Anyway, here is the "normal" "correct" output of id3v2:
Code:
user@host:~/test/Clutch$ id3v2 -l 02.mp3
id3v1 tag info for /home/user/test/Clutch/02.mp3:
Title : Goat Warfare Artist: Clutch
Album : Blast Tyrant Year: 2004, Genre: Hard Rock (79)
Comment: Track: 11
id3v2 tag info for /home/user/test/Clutch/02.mp3:
TIT2 (Title/songname/content description): Goat Warfare
TRCK (Track number/Position in set): 11
TYER (Year): 2004
TCON (Content type): Hard Rock (79)
TALB (Album/Movie/Show title): Blast Tyrant
PRIV (Private frame): (unimplemented)
PRIV (Private frame): (unimplemented)
TPE1 (Lead performer(s)/Soloist(s)): Clutch
As soon as I save the file with EasyTag the id3v2 command does not print the v2 information any more ("No ID3v2 tag"). Thus my regex looking for the genre nice name in the TCON field does not work any more (in this example I could use the v1 information, but I have a few genres that are listed as 'Unknown (255)' in v1 ).
Code:
user@host:~/test/Clutch$ id3v2 -l 02.mp3
id3v1 tag info for /home/user/test/Clutch/02.mp3:
Title : Goat Warfare Artist: Clutch
Album : Blast Tyrant Year: 2004, Genre: Hard Rock (79)
Comment: Track: 11
/home/user/test/Clutch/02.mp3: No ID3v2 tag
I use defaults in EasyTag, and double checked that I in fact WRITE v2 information. If I open that file in EasyTag again I can see the v2 information again, so it's there, apparently. Only id3v2 is not able to read it.
Anyone else encountered this problem? Is id3v2 still the right tool for command line tag extraction?
Nick
Bookmarks