This commit is contained in:
Kovid Goyal 2012-04-10 18:09:54 +05:30
parent 681d33416b
commit 396ad1c9dd
2 changed files with 2 additions and 2 deletions

View File

@ -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 = []

View File

@ -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')