mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 01:25:47 +01:00
Don't auto-tag partial matches.
Add `import: confirm_partial` setting, with a default of "no" (current behaviour). If set to "yes", strong recommendations for partial matches will be downgraded to medium recommendation, thus will require confirmation and will not be auto-tagged.
This commit is contained in:
parent
58dafee966
commit
666b9848de
2 changed files with 6 additions and 0 deletions
|
|
@ -332,6 +332,11 @@ def recommendation(results):
|
|||
else:
|
||||
min_dist = results[0].distance
|
||||
if min_dist < config['match']['strong_rec_thresh'].as_number():
|
||||
# Reduce to medium rec if partial releases are not allowed.
|
||||
if isinstance(results[0], hooks.AlbumMatch) and \
|
||||
config['import']['confirm_partial'] and \
|
||||
(results[0].extra_items or results[0].extra_tracks):
|
||||
return RECOMMEND_MEDIUM
|
||||
# Strong recommendation level.
|
||||
rec = RECOMMEND_STRONG
|
||||
elif len(results) == 1:
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ import:
|
|||
autotag: yes
|
||||
quiet: no
|
||||
singletons: no
|
||||
confirm_partial: no
|
||||
|
||||
ignore: [".*", "*~"]
|
||||
replace:
|
||||
|
|
|
|||
Loading…
Reference in a new issue