This commit is contained in:
Kovid Goyal 2012-03-12 09:32:05 +05:30
parent 0fb6d7bd59
commit c62e2fde36

View File

@ -121,11 +121,12 @@ class MobiReader(object):
# header not the Mobi 8 header
for x in ('first_image_index',):
setattr(self.book_header, x, getattr(bh, x))
self.book_header.huff_offset += i + 1
if hasattr(self.book_header, 'huff_offset'):
self.book_header.huff_offset += i + 1
self.kf8_type = 'joint'
self.kf8_boundary = i
except:
pass
self.book_header = bh
break
def check_for_drm(self):