From 177f284d401979b3024bbbb87e585297188c8e1b Mon Sep 17 00:00:00 2001 From: Max Goltzsche Date: Mon, 4 Dec 2023 02:21:10 +0100 Subject: [PATCH] expose incremental_skip_later as cli option Closes #4958 --- beets/ui/commands.py | 14 ++++++++++++++ docs/changelog.rst | 1 + docs/reference/cli.rst | 9 +++++++++ 3 files changed, 24 insertions(+) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 63f25fca9..26eb5320a 100755 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -1506,6 +1506,20 @@ import_cmd.parser.add_option( action="store_false", help="do not skip already-imported directories", ) +import_cmd.parser.add_option( + "-R", + "--incremental-skip-later", + action="store_true", + dest="incremental_skip_later", + help="do not record skipped files during incremental import", +) +import_cmd.parser.add_option( + "-r", + "--noincremental-skip-later", + action="store_false", + dest="incremental_skip_later", + help="record skipped files during incremental import", +) import_cmd.parser.add_option( "--from-scratch", dest="from_scratch", diff --git a/docs/changelog.rst b/docs/changelog.rst index c69ec82f8..19a1fb43f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -146,6 +146,7 @@ New features: * :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. +* :ref:`import-cmd`: Expose `import.incremental_skip_later` as CLI option. Bug fixes: diff --git a/docs/reference/cli.rst b/docs/reference/cli.rst index a2997c70e..8caf70763 100644 --- a/docs/reference/cli.rst +++ b/docs/reference/cli.rst @@ -115,6 +115,15 @@ Optional command flags: time, when no subdirectories will be skipped. So consider enabling the ``incremental`` configuration option. +* If you don't want to record skipped files during an *incremental* import, use + the ``--incremental-skip-later`` flag which corresponds to the + ``incremental_skip_later`` configuration option. + Setting the flag prevents beets from persisting skip decisions during a + non-interactive import so that a user can make a decision regarding + previously skipped files during a subsequent interactive import run. + To record skipped files during incremental import explicitly, use the + ``--noincremental-skip-later`` option. + * When beets applies metadata to your music, it will retain the value of any existing tags that weren't overwritten, and import them into the database. You may prefer to only use existing metadata for finding matches, and to erase it