pull/49/head
Broque Thomas 8 months ago
parent 3e8b469adb
commit 596c16e895

@ -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)

@ -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:

Loading…
Cancel
Save