cannot set COMPOSER

Michael Helmling michaelhelmling at posteo.de
Fri Nov 7 18:31:14 UTC 2014


Hi Bruce,

Am 07.11.2014 um 17:58 schrieb Bruce Culbertson:
> 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.
That conclusion is definitely wrong; I am myself using taglib to read
and write Composer tags on a daily basis. :-) I don't have a clue what's
the problem in your case ...
Michael

>
> Cheers,
> Bruce
>
> On Thu, Nov 6, 2014 at 11:39 PM, Michael Helmling
> <michaelhelmling at posteo.de <mailto: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 list
>>     taglib-devel at kde.org <mailto:taglib-devel at kde.org>
>>     https://mail.kde.org/mailman/listinfo/taglib-devel
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20141107/65e1aef9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20141107/65e1aef9/attachment.sig>


More information about the taglib-devel mailing list