wilsonyu2006 / mutagen

Automatically exported from code.google.com/p/mutagen
GNU General Public License v2.0
0 stars 0 forks source link

FLAC: append new text to multivalue tag #168

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
How do I append to a (FLAC)tag, for instance 'artist' when I already have it 
filled and want to add a second artist name to it?

I have tried it with audio['artist'].append('Janis Joplin') or with 
audio['artist'][1] = 'Janis Joplin'. But either worked.

cheers CF

Original issue reported on code.google.com by revo1...@gmail.com on 5 Feb 2014 at 2:31

GoogleCodeExporter commented 8 years ago
__getitem__ returns a copy, you have to modify it and set it with __setitem__

Original comment by reiter.christoph@gmail.com on 5 Feb 2014 at 4:53

GoogleCodeExporter commented 8 years ago
You mean, I have to get the existing tag value and add the extra one and than 
feed it back to the tag. Yes?

Original comment by revo1...@gmail.com on 5 Feb 2014 at 6:09

GoogleCodeExporter commented 8 years ago
yes

Original comment by reiter.christoph@gmail.com on 5 Feb 2014 at 6:29

GoogleCodeExporter commented 8 years ago
Ok. Thanks for the clarification .

Original comment by revo1...@gmail.com on 5 Feb 2014 at 6:41

GoogleCodeExporter commented 8 years ago

Original comment by reiter.christoph@gmail.com on 4 Jul 2014 at 3:34