From b416ca9853c8ced918c136e64e852579abce5a14 Mon Sep 17 00:00:00 2001 From: Zotify Date: Tue, 18 Oct 2022 21:25:07 +0000 Subject: [PATCH] Switch cover art to 640px image Fixes recent API change that switched the order of cover art URLs, causing zotify to fetch 64px images. --- zotify/track.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zotify/track.py b/zotify/track.py index 028b41c..2bee539 100644 --- a/zotify/track.py +++ b/zotify/track.py @@ -61,7 +61,7 @@ def get_song_info(song_id) -> Tuple[List[str], List[Any], str, str, Any, Any, An album_name = info[TRACKS][0][ALBUM][NAME] name = info[TRACKS][0][NAME] - image_url = info[TRACKS][0][ALBUM][IMAGES][0][URL] + image_url = info[TRACKS][0][ALBUM][IMAGES][2][URL] release_year = info[TRACKS][0][ALBUM][RELEASE_DATE].split('-')[0] disc_number = info[TRACKS][0][DISC_NUMBER] track_number = info[TRACKS][0][TRACK_NUMBER]