mirror of
https://github.com/beetbox/beets.git
synced 2026-02-09 00:41:57 +01:00
Given an identical similarity, prefer MusicBrainz matches.
This commit is contained in:
parent
e3fa403ad2
commit
22d82b73b4
1 changed files with 2 additions and 1 deletions
|
|
@ -481,7 +481,8 @@ def tag_album(items, search_artist=None, search_album=None,
|
|||
_add_candidate(items, candidates, info)
|
||||
|
||||
# Sort and get the recommendation.
|
||||
candidates = sorted(candidates.itervalues())
|
||||
candidates = sorted(candidates.itervalues(),
|
||||
key=lambda i: (i.distance, i.info.data_source != 'MusicBrainz'))
|
||||
rec = _recommendation(candidates)
|
||||
return cur_artist, cur_album, candidates, rec
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue