events: add item_removed event

This commit is contained in:
Romuald Conty 2014-01-09 15:13:23 +00:00
parent d30db10d10
commit f18481d427

View file

@ -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: