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:
Timothy Legge 2010-09-10 19:12:52 -03:00
parent 619ea1f5c2
commit b1b099d7e8

View File

@ -106,7 +106,10 @@ class KOBO(USBMS):
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