From c3f88a713a885c763c77c2a1dc6a9b5c61df604f Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Mon, 20 Apr 2026 16:29:38 -0700 Subject: [PATCH] Fix unknown_artist_fixer crash on missing deezer_track_id column The tracks table uses 'deezer_id' not 'deezer_track_id'. The query and source field mapping both referenced the wrong column name. --- core/repair_jobs/unknown_artist_fixer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/repair_jobs/unknown_artist_fixer.py b/core/repair_jobs/unknown_artist_fixer.py index db80be1c..6ceb42ab 100644 --- a/core/repair_jobs/unknown_artist_fixer.py +++ b/core/repair_jobs/unknown_artist_fixer.py @@ -92,7 +92,7 @@ class UnknownArtistFixerJob(RepairJob): ar.id as artist_id, ar.name as artist_name, al.id as album_id, al.title as album_title, al.year, al.thumb_url as album_thumb, - t.spotify_track_id, t.itunes_track_id, t.deezer_track_id + t.spotify_track_id, t.itunes_track_id, t.deezer_id FROM tracks t JOIN artists ar ON ar.id = t.artist_id JOIN albums al ON al.id = t.album_id @@ -337,7 +337,7 @@ class UnknownArtistFixerJob(RepairJob): def _iter_source_track_ids(self, track: dict, primary_source: str): source_fields = { 'spotify': 'spotify_track_id', - 'deezer': 'deezer_track_id', + 'deezer': 'deezer_id', 'itunes': 'itunes_track_id', } ordered_sources = [source for source in self._iter_source_priority(primary_source, _TRACK_ID_SOURCES) if source in source_fields]