From 54f927320dea47ac61775e171c7ae7910083552e Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Tue, 31 Mar 2026 22:01:20 -0700 Subject: [PATCH] Fix skip_cache crash when watchlist scan uses non-Spotify client MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit iTunes and Deezer clients don't accept skip_cache param — only pass it when the active client is the Spotify client (detected via sp attr). --- web_server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web_server.py b/web_server.py index 10528d66..3644c8d2 100644 --- a/web_server.py +++ b/web_server.py @@ -42891,7 +42891,9 @@ def playlist_explorer_build_tree(): # Fetch albums try: - all_albums = active_client.get_artist_albums(artist_id, album_type='album,single', limit=50, skip_cache=True) + # skip_cache only supported by spotify_client — other clients don't cache this call + _skip = {'skip_cache': True} if hasattr(active_client, 'sp') else {} + all_albums = active_client.get_artist_albums(artist_id, album_type='album,single', limit=50, **_skip) except Exception as e: return {'success': False, 'error': f'Album fetch failed: {e}'}