From 8a3b9acdee1b7ea8c2f9de98c7fe6d42f5d86d9e Mon Sep 17 00:00:00 2001 From: Max Goltzsche Date: Mon, 4 Dec 2023 22:53:32 +0100 Subject: [PATCH] expose import.quiet_fallback as cli option --- beets/ui/commands.py | 6 ++++++ docs/changelog.rst | 1 + docs/reference/cli.rst | 6 ++++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 439858477..63f25fca9 100755 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -1460,6 +1460,12 @@ import_cmd.parser.add_option( dest="quiet", help="never prompt for input: skip albums instead", ) +import_cmd.parser.add_option( + "--quiet-fallback", + type="string", + dest="quiet_fallback", + help="decision in quiet mode when no strong match: skip or asis", +) import_cmd.parser.add_option( "-l", "--log", diff --git a/docs/changelog.rst b/docs/changelog.rst index 3872db865..c69ec82f8 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -145,6 +145,7 @@ New features: plugin which allows to replace fields based on a given library query. * :doc:`/plugins/lyrics`: Add LRCLIB as a new lyrics provider and a new `synced` option to prefer synced lyrics over plain lyrics. +* :ref:`import-cmd`: Expose import.quiet_fallback as CLI option. Bug fixes: diff --git a/docs/reference/cli.rst b/docs/reference/cli.rst index 86c615dbb..a2997c70e 100644 --- a/docs/reference/cli.rst +++ b/docs/reference/cli.rst @@ -93,8 +93,10 @@ Optional command flags: * Relatedly, the ``-q`` (quiet) option can help with large imports by autotagging without ever bothering to ask for user input. Whenever the normal autotagger mode would ask for confirmation, the quiet mode - pessimistically skips the album. The quiet mode also disables the tagger's - ability to resume interrupted imports. + performs a fallback action that can be configured using the + ``quiet_fallback`` configuration or ``--quiet-fallback`` CLI option. + By default it pessimistically ``skip``s the file. + Alternatively, it can be used as is, by configuring ``asis``. * Speaking of resuming interrupted imports, the tagger will prompt you if it seems like the last import of the directory was interrupted (by you or by