mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 12:48:36 +02:00
Properly fix #581
This commit is contained in:
parent
90b8a74b0d
commit
457f622447
1 changed files with 3 additions and 2 deletions
|
|
@ -181,9 +181,10 @@ def create_opf(self, htmlfile):
|
|||
opf = OPFCreator(os.path.dirname(htmlfile), mi)
|
||||
if hasattr(self.book_header.exth, 'cover_offset'):
|
||||
opf.cover = 'images/%05d.jpg'%(self.book_header.exth.cover_offset+1)
|
||||
manifest = [(os.path.basename(htmlfile), 'text/x-oeb1-document')]
|
||||
manifest = [(htmlfile, 'text/x-oeb1-document')]
|
||||
bp = os.path.dirname(htmlfile)
|
||||
for i in self.image_names:
|
||||
manifest.append(('images/'+i, 'image/jpg'))
|
||||
manifest.append((os.path.join(bp,'images/',i), 'image/jpg'))
|
||||
|
||||
opf.create_manifest(manifest)
|
||||
opf.create_spine([os.path.basename(htmlfile)])
|
||||
|
|
|
|||
Loading…
Reference in a new issue