Skip to content

Commit 84da955

Browse files
committed
dedupe
1 parent 9147046 commit 84da955

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xklb/media/dedupe.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,11 @@ def get_fs_duplicates(args) -> List[dict]:
366366
size_groups[m['size']].append(m)
367367
size_groups = [l for l in size_groups.values() if len(l) > 1]
368368

369+
size_paths = list(iterables.flatten(size_groups))
370+
media = [d for d in media if d['path'] in size_paths]
369371
log.info(
370372
'Got %s size matches (%s dup groups). Doing sample-hash comparison...',
371-
len(list(iterables.flatten(size_groups))),
373+
len(size_paths),
372374
len(size_groups),
373375
)
374376

0 commit comments

Comments
 (0)