Genre becomes a Numeric value

Jeff Mitchell mitchell at kde.org
Wed Sep 16 06:03:52 CEST 2009


Manfred Schwind wrote:
>>> I recently tested taglib. Great piece of software! But I discovered
>>> something strange: I have an MP3 file whose Genre shows up e.g. as
>>> "Rock". But after rewriting the Tag with taglib, it becomes e.g.  
>>> "17".
>>> Is this a known bug?
>> That's normal - the ID3 format allows you to do that.
>>
>> It should still display in application as the correct thing - "Rock"
>> in this case.
>>
>> Unfortunately, iTunes implements this incorrectly (I reported the bug
>> to apple some months ago, but haven't heard back). I'm attaching a
>> patch I wrote to work around this.
> 
> OK, thanks!
> I looked into the sources and also found a solution that works for me.
> Yes, I'm looking with iTunes at the files. First it was "Rock", after  
> rewriting the tag with taglib, it was "17".
> After looking into the source of ID3v2::Tag::setGenre the workaround  
> was pretty easy:
> I just do a tag->setGenre(tag->genre()); before saving now ...
> ;-)

Note that there are already various workarounds for iTunes bugs in
TagLib, which can be toggled at build time. If this was indeed reported
before, it may actually have a fix in existence but just not activated
by default.

--Jeff

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: OpenPGP digital signature
Url : http://mail.kde.org/pipermail/taglib-devel/attachments/20090916/180ba168/attachment.sig 


More information about the taglib-devel mailing list