badfiles: Respect any previous decision to skip an import and don't re-prompt the user.
@@ -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')))
