diff options
author | J0J0 Todos <jojo@peek-a-boo.at> | 2023-07-31 11:34:17 +0200 |
---|---|---|
committer | J0J0 Todos <jojo@peek-a-boo.at> | 2023-08-23 07:54:26 +0200 |
commit | 245d77718573dc087ce3750f7cf0128788bbf848 (patch) | |
tree | f2cdc5a5d633d475663addf01abd985276175c88 | |
parent | d91a3e0fba601661081c3557100a04bd7208feac (diff) |
Make verbose duplicates prompt configurable
-rw-r--r-- | beets/config_default.yaml | 1 | ||||
-rwxr-xr-x | beets/ui/commands.py | 10 |
2 files changed, 7 insertions, 4 deletions
diff --git a/beets/config_default.yaml b/beets/config_default.yaml index dcb244bbd..db9f985ec 100644 --- a/beets/config_default.yaml +++ b/beets/config_default.yaml @@ -31,6 +31,7 @@ import: album: albumartist album item: artist title duplicate_action: ask + duplicate_verbose_prompt: no bell: no set_fields: {} ignored_alias_types: [] diff --git a/beets/ui/commands.py b/beets/ui/commands.py index ff92d1f1f..9fdd4b166 100755 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -872,15 +872,17 @@ class TerminalImportSession(importer.ImportSession): list(duplicate.items()) if task.is_album else [duplicate], not task.is_album, )) - for dup in duplicate.items(): - print(f" {dup}") + if config['import']['duplicate_verbose_prompt']: + for dup in duplicate.items(): + print(f" {dup}") print_("New: " + summarize_items( task.imported_items(), not task.is_album, )) - for item in task.imported_items(): - print(f" {item}") + if config['import']['duplicate_verbose_prompt']: + for item in task.imported_items(): + print(f" {item}") sel = ui.input_options( ('Skip new', 'Keep all', 'Remove old', 'Merge all') |