mirror of
https://github.com/glomatico/votify.git
synced 2026-09-26 11:02:29 +02:00
Store METADATA_BLOCK_PICTURE as list in file tags
This commit is contained in:
@@ -345,9 +345,9 @@ class SpotifyBaseDownloader:
|
||||
picture.data = cover_bytes
|
||||
picture.type = 3
|
||||
picture.width, picture.height = Image.open(BytesIO(cover_bytes)).size
|
||||
ogg_tags["METADATA_BLOCK_PICTURE"] = base64.b64encode(
|
||||
picture.write()
|
||||
).decode("ascii")
|
||||
file["METADATA_BLOCK_PICTURE"] = [
|
||||
base64.b64encode(picture.write()).decode("ascii")
|
||||
]
|
||||
|
||||
try:
|
||||
file.save()
|
||||
|
||||
Reference in New Issue
Block a user