From 9021f71d4c75ce7a085f3bfb2a3cfb51af5e2694 Mon Sep 17 00:00:00 2001 From: Yogesh Sharma Date: Sun, 5 Mar 2023 00:43:25 +0530 Subject: [PATCH] Album art image giving 404 Error --- scripts/download_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/download_manager.py b/scripts/download_manager.py index feff475..50740a8 100644 --- a/scripts/download_manager.py +++ b/scripts/download_manager.py @@ -99,7 +99,7 @@ def addtags(self, filename, json_data, playlist_name): audio['cprt'] = html.unescape(self.unicode(json_data['label'])) # if track['explicit']: # audio['rtng'] = [(str(4))] - cover_url = json_data['image'][:-11] + '500x500.jpg' + cover_url = json_data['image'][:-12] + '500x500.jpg' fd = urllib.request.urlopen(cover_url) cover = MP4Cover(fd.read(), getattr(MP4Cover, 'FORMAT_PNG' if cover_url.endswith('png') else 'FORMAT_JPEG')) fd.close()