Closed GoogleCodeExporter closed 9 years ago
The proper form of the SYLT text value is pairs of strings and timecodes, e.g.
[("Foo", 1), ("Bar", 2)...], not the raw ID3 data for the frame.
Original comment by joe.wreschnig@gmail.com
on 12 Jul 2011 at 8:43
Great! It works perfectly. Just one more question: do the values of "encoding",
"format" and "type" in SYLT function correspond to SYLT characters "encoding"
(value in {0,1}), "time stamp format" (value in {1,2}) and content type (value
in {0,1,2,3,4,5,6})? Thanks!
Original comment by Yizhao...@googlemail.com
on 12 Jul 2011 at 9:02
Hi again, I met the problem. I saved the tags successfully, but when I read it
again, the SYLT frame disappear. Is it a bug of Mutagen? Very much appreciate
if you can help! I attached the code I executed and the results I got:
==============================================
>>> from mutagen.id3 import ID3
>>> from mutagen.id3 import SYLT
>>>
dirF='e:/project/mir_project/Harmony_Progression_Toolbox/062_Ticket_To_Ride.mp3'
;
>>> audio=ID3(dirF);
>>> audio
{'TIT2': TIT2(encoding=3, text=[u'062_Ticket_To_Ride.mp3'])}
>>> audio.add(SYLT(encoding=1,lang='eng',format=1,type=1,text=[("foo",1)]));
>>> audio
{u"SYLT:None:'eng'": SYLT(encoding=1, lang='eng', format=1, type=1,
desc=u'None', text=[('foo', 1)]), 'TIT2': TIT2(encoding=3,
text=[u'062_Ticket_To_Ride.mp3'])}
>>> audio.save();
>>> del audio
>>> audio=ID3(dirF);
>>> audio
{'TIT2': TIT2(encoding=3, text=[u'062_Ticket_To_Ride.mp3'])}
==============================================
Regards,
Y. Ni
Original comment by Yizhao...@googlemail.com
on 13 Jul 2011 at 11:29
Original issue reported on code.google.com by
Yizhao...@googlemail.com
on 12 Jul 2011 at 4:53