Fix 'no such column: deezer_artist_id' on enhanced library sync

The artists table uses 'deezer_id' but the enhanced library artist
lookup was querying 'deezer_artist_id' (the watchlist_artists column
name). Fixed to use the correct column name.
This commit is contained in:
Broque Thomas 2026-04-16 18:14:40 -07:00
parent 09d358ef69
commit 876c5665ad

View file

@ -15315,7 +15315,7 @@ def sync_artist_library(artist_id):
pass
# If not found as DB ID, look up by source artist ID
if not db_artist_id:
for col in ('spotify_artist_id', 'itunes_artist_id', 'deezer_artist_id'):
for col in ('spotify_artist_id', 'itunes_artist_id', 'deezer_id'):
cursor.execute(f"SELECT id FROM artists WHERE {col} = ?", (artist_id,))
row = cursor.fetchone()
if row: