From 1ad5d9eee1ad110ed516e8b83cc86a137a3a3b4b Mon Sep 17 00:00:00 2001 From: Tai Lee Date: Fri, 24 May 2013 16:41:32 +1000 Subject: [PATCH] Reverse [78a4026a2c81cf0c90598174ff8be7b0b9f579a9]. If a file already has a track id, we should expect the best match album to have a track with the same ID. Treat a missing ID the same as an incorrect ID. --- 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 de347f604..db90481ff 100644 --- a/beets/autotag/match.py +++ b/beets/autotag/match.py @@ -241,7 +241,7 @@ def track_distance(item, track_info, incl_artist=False): dist_max += TRACK_INDEX_WEIGHT # MusicBrainz track ID. - if item.mb_trackid and track_info.track_id: + if item.mb_trackid: if item.mb_trackid != track_info.track_id: dist += TRACK_ID_WEIGHT dist_max += TRACK_ID_WEIGHT