From a52edde7336bbdcaaedd5f8cdf18dbd3de065a32 Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Mon, 30 Mar 2026 22:20:44 -0700 Subject: [PATCH] Fix discovery toast always showing iTunes instead of active source YouTube and ListenBrainz discovery toasts had source_label hardcoded to 'iTunes' when not using Spotify. Now uses discovery_source.upper() like the other discovery functions, so it correctly shows DEEZER when Deezer is the active metadata source. --- web_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_server.py b/web_server.py index bc3e9e52..d71afe90 100644 --- a/web_server.py +++ b/web_server.py @@ -32122,7 +32122,7 @@ def _run_youtube_discovery_worker(url_hash): print(f"⚠️ Error writing discovery results to DB: {wb_err}") playlist_name = playlist['name'] - source_label = 'Spotify' if use_spotify else 'iTunes' + source_label = discovery_source.upper() add_activity_item("✅", f"YouTube Discovery Complete ({source_label})", f"'{playlist_name}' - {state['spotify_matches']}/{len(tracks)} tracks found", "Now") print(f"✅ YouTube discovery complete ({discovery_source}): {state['spotify_matches']}/{len(tracks)} tracks matched") @@ -32399,7 +32399,7 @@ def _run_listenbrainz_discovery_worker(state_key): state['discovery_progress'] = 100 playlist_name = playlist['name'] - source_label = 'Spotify' if use_spotify else 'iTunes' + source_label = discovery_source.upper() add_activity_item("✅", f"ListenBrainz Discovery Complete ({source_label})", f"'{playlist_name}' - {state['spotify_matches']}/{len(tracks)} tracks found", "Now") print(f"✅ ListenBrainz discovery complete ({discovery_source}): {state['spotify_matches']}/{len(tracks)} tracks matched")