mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 20:13:37 +01:00
events: add item_removed event
This commit is contained in:
parent
d30db10d10
commit
f18481d427
1 changed files with 3 additions and 0 deletions
|
|
@ -712,6 +712,9 @@ class Item(Model):
|
|||
album = self.get_album()
|
||||
if album and not album.items():
|
||||
album.remove(delete, False)
|
||||
|
||||
# Send a 'item_removed' signal to plugins
|
||||
plugins.send('item_removed', item=self)
|
||||
|
||||
# Delete the associated file.
|
||||
if delete:
|
||||
|
|
|
|||
Loading…
Reference in a new issue