Skip zero-track albums in album completeness scanner

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.
This commit is contained in:
Broque Thomas 2026-04-08 11:49:30 -07:00
parent c6bebd5e09
commit ec87cb6d0e

View file

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