From e67bdd5fa6c8344ecd86980a20c4922f36ab1952 Mon Sep 17 00:00:00 2001 From: Peter B Date: Sun, 10 Apr 2011 20:25:01 -0400 Subject: [PATCH] added lib parameter to the album_imported event --- beets/ui/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index e66fdeafc..3a29af613 100755 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -590,7 +590,7 @@ def apply_choices(lib, copy, write, art, delete, progress): # Announce that we've added an album. if task.choice_flag in (CHOICE_ALBUM, CHOICE_ASIS): - plugins.send('album_imported', album=albuminfo) + plugins.send('album_imported', lib=lib, album=albuminfo) else: for item in task.items: plugins.send('item_imported', lib=lib, item=item) @@ -627,7 +627,7 @@ def simple_import(lib, paths, copy, delete, resume): lib.save() # Announce that we added an album. - plugins.send('album_imported', album=album) + plugins.send('album_imported', lib=lib, album=album) if resume is not False: progress_set(task.toppath, task.path)