dhowden / tag

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

Can't get multiple values for a tag in ID3v2.4 #54

Open stkb opened 5 years ago

stkb commented 5 years ago

In ID3v2.4, frames can have multiple strings (eg multiple artists), separated by null byte(s). But in the code, the null bytes are stripped from the string before it's passed out, resulting in a string that's just a concatenation of all the values.

Is there a way to get the multiple values for a tag?

dhowden commented 5 years ago

The spec [1] is helpfully vague on this, so I'm having trouble working out exactly how this is supposed to work.

If we can be sure it's inline with the spec [1], then I'm happy to make the change/take a pull request to fix it.

Help appreciated!

[1] Spec: http://id3.org/id3v2.4.0-structure