quodlibet/mutagen

Embed multiple artists

ritiek opened this issue · 2 comments

Is it possible to embed multiple artists in an MP3 (or even MP4)? If so, can somebody provide me an example? Does it also work with EasyID3?

Thanks in advance!

lazka commented
from mutagen.mp3 import MP3
from mutagen.id3 import TPE1

f = MP3("file.mp3")
if f.tags is None:
    f.add_tags()
f.tags.add(TPE1(text=[u"artist1", u"artist2"]))
f.save()

#######

from mutagen.mp3 import EasyMP3
f = EasyMP3("a.mp3")
f["artist"] = [u"artist1", u"artist2"]
f.save()

@lazka Thanks, it works perfectly! Thank you for building mutagen. 😄