From 78a4026a2c81cf0c90598174ff8be7b0b9f579a9 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 21 May 2013 18:07:30 -0700 Subject: [PATCH] don't penalize Discogs matches for lacking MBIDs This removes the distance component for MBIDs for matches that don't have MBIDs. (Previously, when importing an album that already has MBIDs, Discogs would be unfairly penalized.) --- beets/autotag/match.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/autotag/match.py b/beets/autotag/match.py index 76161d905..c423e7a56 100644 --- a/beets/autotag/match.py +++ b/beets/autotag/match.py @@ -235,7 +235,7 @@ def track_distance(item, track_info, incl_artist=False): dist_max += TRACK_INDEX_WEIGHT # MusicBrainz track ID. - if item.mb_trackid: + if item.mb_trackid and track_info.track_id: if item.mb_trackid != track_info.track_id: dist += TRACK_ID_WEIGHT dist_max += TRACK_ID_WEIGHT