Add backup-first duplicate repair
This commit is contained in:
@@ -11,7 +11,9 @@ def find_duplicate_groups(
|
||||
) -> Tuple[DuplicateGroup, ...]:
|
||||
"""Find exact-name duplicates and suspected numeric conflict copies."""
|
||||
|
||||
track_tuple = tuple(tracks)
|
||||
# Healthy symlinks preserve legacy Serato paths without consuming another
|
||||
# copy of the audio, so they are aliases rather than duplicate files.
|
||||
track_tuple = tuple(track for track in tracks if not track.path.is_symlink())
|
||||
by_name: DefaultDict[str, List[DiskTrack]] = defaultdict(list)
|
||||
by_conflict_name: DefaultDict[str, List[DiskTrack]] = defaultdict(list)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user