mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 16:54:28 +02:00
Fix bug processing kobo books introduced in 6084.1.4 - no one mentioned it so it must not have caused any real issues
This commit is contained in:
parent
619ea1f5c2
commit
b1b099d7e8
1 changed files with 4 additions and 1 deletions
|
|
@ -106,7 +106,10 @@ def update_booklist(prefix, path, title, authors, mime, date, ContentType, Image
|
|||
changed = True
|
||||
bl[idx].device_collections = playlist_map.get(lpath, [])
|
||||
else:
|
||||
book = self.book_from_path(prefix, lpath, title, authors, mime, date, ContentType, ImageID)
|
||||
if ContentType == '6':
|
||||
book = Book(prefix, lpath, title, authors, mime, date, ContentType, ImageID, size=1048576)
|
||||
else:
|
||||
book = self.book_from_path(prefix, lpath, title, authors, mime, date, ContentType, ImageID)
|
||||
# print 'Update booklist'
|
||||
if bl.add_book(book, replace_metadata=False):
|
||||
changed = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue