mirror of
https://github.com/beetbox/beets.git
synced 2026-02-24 08:12:54 +01:00
Fix album emptiness test in duplicates resolution
Fix #1367. Tests are missing for I've not found yet a satisfying way to build them.
This commit is contained in:
parent
c4d7dd0d6d
commit
9b5d78bad0
1 changed files with 1 additions and 1 deletions
|
|
@ -780,7 +780,7 @@ class TerminalImportSession(importer.ImportSession):
|
|||
|
||||
# skip empty albums (coming from a previous failed import session)
|
||||
if task.is_album:
|
||||
real_duplicates = filter(len, found_duplicates)
|
||||
real_duplicates = [dup for dup in found_duplicates if dup.items()]
|
||||
if not real_duplicates:
|
||||
log.info("All duplicates are empty, we ignore them")
|
||||
task.should_remove_duplicates = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue