mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Properly fix #581
This commit is contained in:
parent
90b8a74b0d
commit
457f622447
@ -181,9 +181,10 @@ class MobiReader(object):
|
||||
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…
x
Reference in New Issue
Block a user