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.
This commit is contained in:
Tai Lee 2013-05-24 16:41:32 +10:00
parent f5557a74d7
commit 1ad5d9eee1

View file

@ -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