'Update the GUI; highlight the books that were added/modified'

def refresh_gui_lib(self):

    if self.current_idx.isValid():
        self.gui.library_view.model().current_changed(self.current_idx, self.current_idx)
    new_entries = [id for (id, mi) in self.ids_of_new_books]
    if new_entries:
        self.gui.library_view.model().db.data.books_added(new_entries)
        self.gui.library_view.model().books_added(len(new_entries))
    new_entries.extend([id for (id, mi) in self.successful_format_adds])
    self.gui.db_images.reset()
    self.gui.tags_view.recount()
    self.gui.library_view.model().set_highlight_only(True)
    self.gui.library_view.select_rows(new_entries)
    return
