From 27bd8965406596f844b0b505cdef54fa557a656e Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Wed, 11 Mar 2026 12:59:23 -0700 Subject: [PATCH] Use largest available Spotify album artwork instead of medium size --- core/spotify_client.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/spotify_client.py b/core/spotify_client.py index f1ffc866..c2b50860 100644 --- a/core/spotify_client.py +++ b/core/spotify_client.py @@ -216,13 +216,12 @@ class Track: @classmethod def from_spotify_track(cls, track_data: Dict[str, Any]) -> 'Track': - # Extract album image (medium size preferred) + # Extract album image (largest available — Spotify returns images sorted largest first) album_image_url = None if 'album' in track_data and 'images' in track_data['album']: images = track_data['album']['images'] if images: - # Get medium size image (usually index 1), or largest if not available - album_image_url = images[1]['url'] if len(images) > 1 else images[0]['url'] + album_image_url = images[0]['url'] return cls( id=track_data['id'],