mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 22:43:31 +02:00
eReader PDB Output: Disable index generation.
This commit is contained in:
parent
599de056d0
commit
86a7524b11
1 changed files with 6 additions and 4 deletions
|
|
@ -42,10 +42,12 @@ def write_content(self, oeb_book, out_stream, metadata=None):
|
|||
pml = unicode(pmlmlizer.extract_content(oeb_book, self.opts)).encode('cp1252', 'replace')
|
||||
|
||||
text, text_sizes = self._text(pml)
|
||||
chapter_index = self._chapter_index(pml)
|
||||
chapter_index = [chapter_index] if chapter_index != '' else []
|
||||
link_index = self._link_index(pml)
|
||||
link_index = [link_index] if link_index != '' else []
|
||||
#chapter_index = self._chapter_index(pml)
|
||||
#chapter_index = [chapter_index] if chapter_index != '' else []
|
||||
chapter_index = []
|
||||
#link_index = self._link_index(pml)
|
||||
#link_index = [link_index] if link_index != '' else []
|
||||
link_index = []
|
||||
images = self._images(oeb_book.manifest, pmlmlizer.image_hrefs)
|
||||
metadata = [self._metadata(metadata)]
|
||||
chapter_index_count = len(chapter_index[0].split('\x00')) - 1 if len(chapter_index) >= 1 else 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue