Commits

Tai Lee  committed 2774bbf

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.

  • Participants
  • Parent commits 7695ec0

Comments (0)

Files changed (2)

File beets/autotag/match.py

     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:

File beets/config_default.yaml

     autotag: yes
     quiet: no
     singletons: no
+    confirm_partial: no
 
 ignore: [".*", "*~"]
 replace: