mirror of
https://github.com/beetbox/beets.git
synced 2026-01-08 17:08:12 +01:00
skip the "candidates" selection if there's only one choice
This commit is contained in:
parent
fc36443ca4
commit
e94e996bfa
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue