mirror of
https://github.com/beetbox/beets.git
synced 2025-12-07 17:16:07 +01:00
Add check_on_import config for badfiles.
This commit is contained in:
parent
e96b5a7eba
commit
2c9f3d6464
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue