From 4d44e11a32bfae74bf46d1bc0ba007bf753cbc0b Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 28 May 2013 21:28:46 -0700 Subject: [PATCH] back out source-sensitive sorting This is now addressed by a distance penalty. --- beets/autotag/match.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/beets/autotag/match.py b/beets/autotag/match.py index 935b60066..f771945d3 100644 --- a/beets/autotag/match.py +++ b/beets/autotag/match.py @@ -525,8 +525,7 @@ def tag_album(items, search_artist=None, search_album=None, _add_candidate(items, candidates, info) # Sort and get the recommendation. - candidates = sorted(candidates.itervalues(), - key=lambda i: (i.distance, i.info.data_source != 'MusicBrainz')) + candidates = sorted(candidates.itervalues()) rec = _recommendation(candidates) return cur_artist, cur_album, candidates, rec