dhowden / tag

ID3, MP4 and OGG/FLAC metadata parsing in Go
BSD 2-Clause "Simplified" License
558 stars 72 forks source link

Ensure sample data actually contains ID3v2.2 #86

Open founderio opened 2 years ago

founderio commented 2 years ago

Fixes #52

I've manually (with a hex editor) adjusted the content of the ID3v2.2 test file to match the spec defined here: https://id3.org/id3v2-00 (Linked from https://id3.org/Developer%20Information)

The file shows up correctly with the CLI now:

./tag -raw testdata/with_tags/sample.id3v22.mp3
Metadata Format: ID3v2.2
File Type: MP3
 Title: Test Title
 Album: Test Album
 Artist: Test Artist
 Composer: Test Composer
 Genre: Jazz
 Year: 2000
 Track: 3 of 6
 Disc: 2 of 0
 Picture: <nil>
 Lyrics: 
 Comment: Test Comment

"TYE": "2000"
"TCO": "(8)"
"COM": &tag.Comm{Language:"\x00\x00\x00", Description:"", Text:"Test Comment"}
"TT2": "Test Title"
"TP2": "Test AlbumArtist"
"TAL": "Test Album"
"TPA": "02"
"TRK": "03/06"
"TCM": "Test Composer"
"TP1": "Test Artist"

And also shows up correctly in other tools:
image
(Note that Ex Falso shows "Performer", which is an ongoing debate on their end (quid libet/ex falso map this to TP2/TPE2)
image