mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-30 20:45:05 +01:00
Change MOBI parsing to hopefully support more MOBI files
This commit is contained in:
parent
c46c23a2b2
commit
565dc2821f
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ def __init__(self, raw, ident):
|
|||
if ident == 'TEXTREAD' or self.length < 0xE4 or 0xE8 < self.length:
|
||||
self.extra_flags = 0
|
||||
else:
|
||||
self.extra_flags, = struct.unpack('>L', raw[0xF0:0xF4])
|
||||
self.extra_flags, = struct.unpack('>H', raw[0xF2:0xF4])
|
||||
|
||||
if self.compression_type == 'DH':
|
||||
self.huff_offset, self.huff_number = struct.unpack('>LL', raw[0x70:0x78])
|
||||
|
|
|
|||
Loading…
Reference in a new issue