Browse Source

Move the `plugins.send()` call into the `Album.remove()` method.

album_removed_event
David Logie 2 months ago
parent
commit
9c9f7eb1ed
  1. 4
      beets/library.py

4
beets/library.py

@ -878,7 +878,6 @@ class Item(LibModel):
album = self.get_album()
if album and not album.items():
album.remove(delete, False)
plugins.send('album_removed', album=album)
# Send a 'item_removed' signal to plugins
plugins.send('item_removed', item=self)
@ -1143,6 +1142,9 @@ class Album(LibModel):
"""
super().remove()
# Send a 'album_removed' signal to plugins
plugins.send('album_removed', album=self)
# Delete art file.
if delete:
artpath = self.artpath

Loading…
Cancel
Save