From 2c9f3d6464d851236bef8a9173ec8e17d0ea9983 Mon Sep 17 00:00:00 2001 From: Ryan Lanny Jenkins Date: Wed, 24 Mar 2021 16:51:58 -0500 Subject: [PATCH] Add `check_on_import` config for badfiles. --- beetsplug/badfiles.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/beetsplug/badfiles.py b/beetsplug/badfiles.py index c54190eaf..c9edbc8c8 100644 --- a/beetsplug/badfiles.py +++ b/beetsplug/badfiles.py @@ -157,6 +157,9 @@ class BadFiles(BeetsPlugin): return error_lines def on_import_task_start(self, task, session): + if not self.config['check_on_import'].get(False): + return + checks_failed = [] for item in task.items: