Fix Duplicate Detector ignoring 'allow duplicate tracks across albums'
The Duplicate Detector repair job had its own ignore_cross_album setting that was independent of the global allow_duplicate_tracks setting. When a user enabled 'Allow duplicate tracks across albums', the detector still flagged same-titled tracks on different albums as duplicates. Now respects the global setting — if duplicates are allowed, cross-album matches are always skipped.
This commit is contained in:
parent
a02266596a
commit
0e8e3e86a0
1 changed files with 5 additions and 0 deletions
|
|
@ -47,6 +47,11 @@ class DuplicateDetectorJob(RepairJob):
|
|||
artist_threshold = float(settings.get('artist_similarity', 0.80))
|
||||
ignore_cross_album = settings.get('ignore_cross_album', True)
|
||||
|
||||
# Respect the global "allow duplicate tracks across albums" setting —
|
||||
# if the user explicitly allows duplicates across albums, never flag them
|
||||
if context.config_manager and context.config_manager.get('library.allow_duplicate_tracks', False):
|
||||
ignore_cross_album = True
|
||||
|
||||
# Fetch all tracks with artist/album names via JOIN
|
||||
tracks = []
|
||||
conn = None
|
||||
|
|
|
|||
Loading…
Reference in a new issue