mirror of
https://github.com/beetbox/beets.git
synced 2026-03-03 11:49:30 +01:00
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.)
This commit is contained in:
parent
06887a8cef
commit
78a4026a2c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue