From 596c16e895bd4b2b1a7d8d9b40e9531991e7f54f Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Wed, 24 Sep 2025 00:08:15 -0700 Subject: [PATCH] fix --- ui/pages/dashboard.py | 6 +++++- web_server.py | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ui/pages/dashboard.py b/ui/pages/dashboard.py index 04128eda..95522fab 100644 --- a/ui/pages/dashboard.py +++ b/ui/pages/dashboard.py @@ -1532,7 +1532,11 @@ class MetadataUpdateWorker(QThread): """ try: artist_name = getattr(artist, 'title', 'Unknown Artist') - + + # Skip processing for artists with no valid name + if artist_name == 'Unknown Artist' or not artist_name or not artist_name.strip(): + return False, "Skipped: No valid artist name" + # --- IMPROVED ARTIST MATCHING --- # 1. Search for top 5 potential artists on Spotify spotify_artists = self.spotify_client.search_artists(artist_name, limit=5) diff --git a/web_server.py b/web_server.py index efe96bf8..b4bde9b6 100644 --- a/web_server.py +++ b/web_server.py @@ -11915,7 +11915,11 @@ class WebMetadataUpdateWorker: """Update a single artist's metadata - EXACT copy from dashboard.py""" try: artist_name = getattr(artist, 'title', 'Unknown Artist') - + + # Skip processing for artists with no valid name + if artist_name == 'Unknown Artist' or not artist_name or not artist_name.strip(): + return False, "Skipped: No valid artist name" + # 1. Search for top 5 potential artists on Spotify spotify_artists = self.spotify_client.search_artists(artist_name, limit=5) if not spotify_artists: