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
457f622447
commit
1e680d7fda
@ -184,7 +184,7 @@ class MobiReader(object):
|
|||||||
manifest = [(htmlfile, 'text/x-oeb1-document')]
|
manifest = [(htmlfile, 'text/x-oeb1-document')]
|
||||||
bp = os.path.dirname(htmlfile)
|
bp = os.path.dirname(htmlfile)
|
||||||
for i in self.image_names:
|
for i in self.image_names:
|
||||||
manifest.append((os.path.join(bp,'images/',i), 'image/jpg'))
|
manifest.append((os.path.join(bp, 'images/', i), 'image/jpg'))
|
||||||
|
|
||||||
opf.create_manifest(manifest)
|
opf.create_manifest(manifest)
|
||||||
opf.create_spine([os.path.basename(htmlfile)])
|
opf.create_spine([os.path.basename(htmlfile)])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user