Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions beets/ui/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion beetsplug/embedcoverart.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def configure(self, config):
def loaded(self):
pass

def album_imported(self, album):
def album_imported(self, lib, album):
albumart = album.artpath
ALLOWED_MIMES = ('jpeg','png')

Expand Down