mirror of
https://github.com/beetbox/beets.git
synced 2025-12-29 03:52:51 +01:00
skip duplicate prompt in quiet mode
In quiet mode, duplicates are skipped. We can add a new config option if people really want to customize this.
This commit is contained in:
parent
ced4e1ace8
commit
71762375c9
1 changed files with 11 additions and 4 deletions
|
|
@ -570,10 +570,17 @@ def resolve_duplicate(task, config):
|
|||
"""
|
||||
log.warn("This %s is already in the library!" %
|
||||
("album" if task.is_album else "item"))
|
||||
sel = ui.input_options(
|
||||
('Skip new', 'Keep both', 'Remove old'),
|
||||
color=config.color
|
||||
)
|
||||
|
||||
if config.quiet:
|
||||
# In quiet mode, don't prompt -- just skip.
|
||||
log.info('Skipping.')
|
||||
sel = 's'
|
||||
else:
|
||||
sel = ui.input_options(
|
||||
('Skip new', 'Keep both', 'Remove old'),
|
||||
color=config.color
|
||||
)
|
||||
|
||||
if sel == 's':
|
||||
# Skip new.
|
||||
task.set_choice(importer.action.SKIP)
|
||||
|
|
|
|||
Loading…
Reference in a new issue