From e94e996bfa611ad87458d01d50acece492d84e61 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Fri, 28 May 2010 17:57:45 -0700 Subject: [PATCH] skip the "candidates" selection if there's only one choice --- beets/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/ui.py b/beets/ui.py index 38a676296..dbb74b7d0 100644 --- a/beets/ui.py +++ b/beets/ui.py @@ -58,7 +58,7 @@ def choose_candidate(items, cur_artist, cur_album, candidates): THRESH = 0.1 #fixme top_dist, top_info = candidates[0] bypass_candidates = False - if top_dist <= THRESH: + if top_dist <= THRESH or len(candidates) <= 1: dist, info = top_dist, top_info bypass_candidates = True