mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
681d33416b
commit
396ad1c9dd
@ -393,7 +393,7 @@ class IndexRecord(object): # {{{
|
|||||||
|
|
||||||
parse_index_record(table, record.raw,
|
parse_index_record(table, record.raw,
|
||||||
index_header.tagx_control_byte_count, tags,
|
index_header.tagx_control_byte_count, tags,
|
||||||
index_header.index_encoding, strict=True)
|
index_header.index_encoding, {}, strict=True)
|
||||||
|
|
||||||
self.indices = []
|
self.indices = []
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ class MOBIFile(object):
|
|||||||
|
|
||||||
if self.header.fdst_idx != NULL_INDEX:
|
if self.header.fdst_idx != NULL_INDEX:
|
||||||
idx = self.header.fdst_idx
|
idx = self.header.fdst_idx
|
||||||
self.fdst = FDST(self.kf8_records[idx].raw)
|
self.fdst = FDST(self.mf.records[idx].raw)
|
||||||
if self.fdst.num_sections != self.header.fdst_count:
|
if self.fdst.num_sections != self.header.fdst_count:
|
||||||
raise ValueError('KF8 Header contains invalid FDST count')
|
raise ValueError('KF8 Header contains invalid FDST count')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user