Answer the question
In order to leave comments, you need to log in
How to attach an image to an audio recording using eyed3?
I'm trying to attach an image to a track. There are no errors, but as a result, the image was not, and is not.
Although it shows that in the tags, something is written.
from eyed3 import load
from eyed3.id3 import Tag
from eyed3.mp3 import Mp3AudioFile
from eyed3.plugins.art import ArtFile
file: Mp3AudioFile = load(file_title)
tag: Tag = Tag()
art: ArtFile = ArtFile('cover.jpg')
tag.images.set(type_=art.id3_art_type, img_data=art.image_data, mime_type=art.mime_type)
file.tag = tag
file.tag.save()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question