TagLib usage to add Id3 headers to file

Jarno Lavikonmäki lavikonm at gmail.com
Fri Apr 4 07:58:01 UTC 2014


some part of this tag lib that I do not yet understand

the case here is to update metadata to file

first , if I try

 TagLib::FileRef f("mytestmp3.mp3");

then f.tag() returns NULL;

then I do it this way:

 TagLib::MPEG::File mp3File("mytestmp3.mp3");

first round, this mp3 files does not have ID3v2 or ID3v1

so it goes to "else" branch and calls to to  create ID3v2Tag(true)

and then calls


and after that
bool result = mp3File.save();


then next round ..

hasID3v2Tag() returns true

but actual file in file system does not have metadata updated ,

so what is the "documented" way , to use propertymaps or something else ?

Thanks in advance

br. Jarno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20140404/fe71e64d/attachment.html>

More information about the taglib-devel mailing list