From f0cc11e8ffdf57d48950b5ec214b97cab18a9b3f Mon Sep 17 00:00:00 2001 From: Peter B Date: Sat, 9 Apr 2011 00:04:24 -0400 Subject: [PATCH] added 'album_imported' event. --- beets/ui/commands.py | 7 +++++++ 1 file changed, 7 insertions(+) mode change 100644 => 100755 beets/ui/commands.py diff --git a/beets/ui/commands.py b/beets/ui/commands.py old mode 100644 new mode 100755 index c9ad114b2..b49edbaef --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -532,6 +532,9 @@ def apply_choices(lib, copy, write, art, delete, progress): # Write the database after each album. lib.save() + #annouce that we added an album + plugins.send('album_imported', album=albuminfo) + # Finally, delete old files. if copy and delete: new_paths = [os.path.realpath(item.path) for item in items] @@ -562,6 +565,10 @@ def simple_import(lib, paths, copy, delete, resume): album = lib.add_album(items, True) lib.save() + + #annouce that we added an album + plugins.send('album_imported', album=album) + if resume is not False: progress_set(toppath, path)