ID3。这是 Python 3 API,我不知道如何嵌入图像,到目前为止,我在更改标签的地方有这个,
def addMetaData(url, title, artist, album, track):
response = requests.get(url, stream=True)
with open('img.jpg', 'wb') as out_file:
shutil.copyfileobj(response.raw, out_file)
del response
audio = MP3(filename=title+".mp3", ID3 = EasyID3)
audio['artist'] = artist
audio['title'] = title
audio['tracknumber'] = track
audio['album'] = album
audio.save()
Run Code Online (Sandbox Code Playgroud)