Looking at the code, chaley posted:
Code:
if book_ids:
self.gui.library_view.model().refresh_ids(book_ids)
Looking at the after the loop in the zip archive:
Code:
if book_id:
self.gui.library_view.model().refresh_ids(book_ids)
It seems as if you are missing an s in the if line.
Edit: Tried changing book_id to book_ids and got a BOOL error on install.