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.
pull/305/head
Broque Thomas 1 month ago
parent 09d358ef69
commit 876c5665ad

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

Loading…
Cancel
Save