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:
Tai Lee 2013-01-29 11:41:30 +11:00
parent 58dafee966
commit 666b9848de
2 changed files with 6 additions and 0 deletions

View file

@ -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:

View file

@ -14,6 +14,7 @@ import:
autotag: yes
quiet: no
singletons: no
confirm_partial: no
ignore: [".*", "*~"]
replace: