-
Notifications
You must be signed in to change notification settings - Fork 157
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
Having problems figuring out how to write to ID3 tags for MP3's #585
Labels
Comments
still having problems. |
Something like track_mp3.tags.add(id3.TCOP(encoding=id3.Encoding.LATIN1, text='12345678')) Should work for setting the tag. |
I'm closing this now. If there is still some open question feel free to reopen. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, pretty new'ish to Python, and I had looked at the documentation to try to figure this out.
I couldn't understand how to read the TCOP tag (among other ID3 tags) and write it as blank or remove it. I want to do the same thing to comments and other fields that are unnecessary, but I'm only concerned about doing the copyright (TCOP) tag for the time, because once I figure one out, it'll be easily distributable across other tags I want to change.
Here's the snippet of code I'm having problems with.
Under
def format_copyright
, is a function that when called should set the TCOP tag for my audio files, andclass save track:
should write those tags.I was able to get
copyright = (track_mp3['TCOP'].text[0])
which prints the copyright tag, to work, but I was unable to figure out a way to write it. I tried for about 4 hours to figure out a method that would work to write it (I had like 100 comments of failed ways of doing this before...)Dumbed down for me, how can I take
track_id3
and/ortrack_mp3
and write to the TCOP tag""
(to be blank) or remove them entirely?The text was updated successfully, but these errors were encountered: