This commit is contained in:
Broque Thomas 2025-09-24 00:08:15 -07:00
parent 3e8b469adb
commit 596c16e895
2 changed files with 10 additions and 2 deletions

View file

@ -1533,6 +1533,10 @@ class MetadataUpdateWorker(QThread):
try: try:
artist_name = getattr(artist, 'title', 'Unknown Artist') 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 --- # --- IMPROVED ARTIST MATCHING ---
# 1. Search for top 5 potential artists on Spotify # 1. Search for top 5 potential artists on Spotify
spotify_artists = self.spotify_client.search_artists(artist_name, limit=5) spotify_artists = self.spotify_client.search_artists(artist_name, limit=5)

View file

@ -11916,6 +11916,10 @@ class WebMetadataUpdateWorker:
try: try:
artist_name = getattr(artist, 'title', 'Unknown Artist') 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 # 1. Search for top 5 potential artists on Spotify
spotify_artists = self.spotify_client.search_artists(artist_name, limit=5) spotify_artists = self.spotify_client.search_artists(artist_name, limit=5)
if not spotify_artists: if not spotify_artists: