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:
parent
09d358ef69
commit
876c5665ad
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue