Fwd: cannot set COMPOSER
Bruce Culbertson
bruceculbertson at gmail.com
Fri Nov 7 18:02:58 UTC 2014
Hello Michael,
Thanks for your e-mail. I tried something close to your code. Your code
does not compile but the following does (t is a pointer to Tag):
TagLib::StringList valList ("Beethoven");
TagLib::PropertyMap pmap = t->properties();
pmap ["COMPOSER"] = valList;
t->setProperties (pmap);
f->save();
I ran the above code on mp3, flac, and m4a files and it did not change or
insert a COMPOSER tag, it just silently failed to do what I wanted.
However, the following did change the TITLE tag:
TagLib::StringList valList ("Beethoven");
TagLib::PropertyMap pmap = t->properties();
pmap ["TITLE"] = valList;
t->setProperties (pmap);
f->save();
So my conclusion is that the creators of taglib just never finished the
code to insert and edit any but the five or six most common tags.
Cheers,
Bruce
On Thu, Nov 6, 2014 at 11:39 PM, Michael Helmling <michaelhelmling at posteo.de
> wrote:
> Did you try something like:
>
> p = file->properties();
> p['COMPOSER'] = 'Ludwig van Beethoven';
> file->setProperties(p);
> file->save();
>
> ?
> Michael
>
>
> Am 07.11.2014 um 07:33 schrieb Bruce Culbertson:
>
> I wrote an application to set audio file tags using taglib but found I
> could not set the COMPOSER tag in any of the file types I tried, which were
> mp3, m4a, and flac. Am I right that taglib cannot set COMPOSER? If so,
> this is a show-stopper for me. For the music I am interested in, COMPOSER
> is at least as important as TITLE.
>
> Thanks,
> Bruce
>
>
> _______________________________________________
> taglib-devel mailing listtaglib-devel at kde.orghttps://mail.kde.org/mailman/listinfo/taglib-devel
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20141107/2a9750c6/attachment.html>
More information about the taglib-devel
mailing list