From 33ae02211bc02526cda0f3ee9dbb9d39dc673baf Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Fri, 13 Mar 2026 12:49:15 -0300 Subject: [PATCH] Store METADATA_BLOCK_PICTURE as list in file tags --- votify/downloader/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/votify/downloader/base.py b/votify/downloader/base.py index 8671fda..653c077 100644 --- a/votify/downloader/base.py +++ b/votify/downloader/base.py @@ -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()