mirror of
https://github.com/beetbox/beets.git
synced 2026-01-01 13:33:02 +01:00
first try to implement event handler
This commit is contained in:
parent
1d9e42567b
commit
765f7dc12d
1 changed files with 5 additions and 0 deletions
|
|
@ -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):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue