From ec87cb6d0ed38d760da28aa9255e412bc4fd3b34 Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Wed, 8 Apr 2026 11:49:30 -0700 Subject: [PATCH] Skip zero-track albums in album completeness scanner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Albums with zero local tracks were flagged as incomplete but the auto-fill fix failed because there were no existing tracks to determine the album folder or quality standard from. Now skipped during scan — they'll be detected once tracks are actually added. --- core/repair_jobs/album_completeness.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/repair_jobs/album_completeness.py b/core/repair_jobs/album_completeness.py index aaf99778..bcdbe39a 100644 --- a/core/repair_jobs/album_completeness.py +++ b/core/repair_jobs/album_completeness.py @@ -153,6 +153,11 @@ class AlbumCompletenessJob(RepairJob): context.update_progress(i + 1, total) continue + # Skip albums with zero local tracks — nothing to auto-fill from + if actual_count == 0: + result.skipped += 1 + continue + # Skip albums below minimum completion percentage # (filters out "1 track from a playlist import" false positives) if min_completion_pct > 0 and expected_total > 0: