From 8e4047345371322dcaef4ce84ad76a32b4797031 Mon Sep 17 00:00:00 2001 From: Dickson Date: Sat, 26 Feb 2022 21:15:28 +0800 Subject: [PATCH] fix: dont deduplicate matches if musicbrainz ID is not set for album candidates --- beets/autotag/match.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beets/autotag/match.py b/beets/autotag/match.py index d352a013f..3061aa39b 100644 --- a/beets/autotag/match.py +++ b/beets/autotag/match.py @@ -357,8 +357,8 @@ def _add_candidate(items, results, info): log.debug('No tracks.') return - # Don't duplicate. - if info.album_id in results: + # Prevent duplicates + if info.album_id and info.album_id in results: log.debug('Duplicate.') return