Commits

Adrian Sampson committed 7cf9fd9 Merge

Merge pull request #77 from mrmachine/none-rec-action

For matches with no recommendation, import as-is or skip automatically.

  • Participants
  • Parent commits ec753a2, bccfa28

Comments (0)

Files changed (3)

beets/config_default.yaml

     resume: ask
     incremental: no
     quiet_fallback: skip
+    none_rec_action: ask
     timid: no
     log:
     autotag: yes

beets/ui/commands.py

         match = candidates[0]
         bypass_candidates = True
 
+    # Just make a decision when there's no recommendation?
+    elif config['import']['none_rec_action'].get() == 'skip':
+        print_('Skipping.')
+        return importer.action.SKIP
+    elif config['import']['none_rec_action'].get() == 'asis':
+        print_('Importing as-is.')
+        return importer.action.ASIS
+
     while True:
         # Display and choose from candidates.
         require = rec in (autotag.RECOMMEND_NONE, autotag.RECOMMEND_LOW)

docs/reference/config.rst

 quiet mode (see the ``-q`` flag to ``import``, above) when there is no
 strong recommendation.
 
+none_rec_action
+~~~~~~~~~~~~~~~
+
+Either ``ask`` (default), ``asis`` or ``skip``. Specifies what should happen
+during an interactive import session when there is no recommendation. Useful
+when you are only interested in processing medium and strong recommendations
+interactively.
+
 timid
 ~~~~~