mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
badfiles: Respect any previous decision to skip an import and don't re-prompt the user.
This commit is contained in:
parent
1d4a2c3e2a
commit
6c4cb82c03
1 changed files with 4 additions and 0 deletions
|
|
@ -174,6 +174,10 @@ class BadFiles(BeetsPlugin):
|
|||
task._badfiles_checks_failed = checks_failed
|
||||
|
||||
def on_import_task_before_choice(self, task, session, previous):
|
||||
# Already skipping, so no need to notify the user of anything
|
||||
if previous == importer.action.SKIP:
|
||||
return None
|
||||
|
||||
if hasattr(task, '_badfiles_checks_failed'):
|
||||
ui.print_('{} one or more files failed checks:'
|
||||
.format(ui.colorize('text_warning', 'BAD')))
|
||||
|
|
|
|||
Loading…
Reference in a new issue