'Restore the book entry in the database for a book that already exists on the filesystem'

@write_api
def restore_book(self, book_id, mi, last_modified, path, formats):

    cover = mi.cover
    mi.cover = None
    self._create_book_entry(mi, add_duplicates=True, force_id=book_id, apply_import_tags=False, preserve_uuid=True)
    self._update_last_modified((book_id,), last_modified)
    if (cover and os.path.exists(cover)):
        self._set_field(u'cover', {book_id: 1})
    self.backend.restore_book(book_id, path, formats)
