Fix issue where driver does not properly save attributes to metadata.calibre on adding a book

This commit is contained in:
Timothy Legge 2010-08-25 23:17:17 -03:00
parent 725e9dd68f
commit f37f5126a2

View File

@ -320,6 +320,7 @@ class KOBO(USBMS):
book = Book(prefix, lpath, '', '', '', '', '', '', other=info)
if book.size is None:
book.size = os.stat(self.normalize_path(path)).st_size
book._new_book = True # Must be before add_book
booklists[blist].add_book(book, replace_metadata=True)
self.report_progress(1.0, _('Adding books to device metadata listing...'))