first try to implement event handler

This commit is contained in:
Dorian Soergel 2019-06-07 14:57:38 +02:00
parent 1d9e42567b
commit 765f7dc12d

View file

@ -77,9 +77,14 @@ class ParentWorkPlugin(BeetsPlugin):
'auto': False,
'force': False,
})
if self.config['auto']:
self.import_stages = [self.imported]
self.register_listener('database_change', self.find_work2)
def find_work2(self, lib, model):
self.find_work(model, True)
def commands(self):