Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed multiple artists #310

Closed
ritiek opened this issue Jun 15, 2017 · 2 comments
Closed

Embed multiple artists #310

ritiek opened this issue Jun 15, 2017 · 2 comments

Comments

@ritiek
Copy link

ritiek commented Jun 15, 2017

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
Copy link
Member

lazka commented Jun 15, 2017

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()

@ritiek
Copy link
Author

ritiek commented Jun 15, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants