Issue copying IDv2 TCON frames with a v1 genre reference

Michael Smith msmith at
Fri Nov 13 23:20:27 CET 2009

2009/11/13 Lukáš Lalinský <lalinsky at>:
> On Fri, Nov 13, 2009 at 2:04 PM, patrick machielse <patrick at> wrote:
>> I'm having some trouble copying ID3v2 genre tags wich contain refrences to ID3v1 genres. For example, a v2 genre frame referencing the v1 'Soul' genre looks like this:
>> TCON (42)
>> When copied to a new v2 tag, the frame is written out like this:
>> TCON 42
>> Which is interpreted as a custom genre "42".
> It shouldn't be interpretted as a genre "42" by TagLib or any
> application that supports ID2v2.4. The conversion it does is correct
> -- TCON with a value "(42)" is the way to write ID3v1-style genres in
> ID3v2.3, "42" is the way to do it in ID3v2.4. Writing "(42)" to a
> ID3v2.4 frame would be incorrect (TagLib can only write ID3v2.4 tags).

Note that itunes can't handle v2.4-style numeric genres. Taglib, as of
1.6 I think, won't write out a numeric genre ever (well, unless you
disable the itunes hacks), it'll always expand them to the string


More information about the taglib-devel mailing list