mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2017 (Another PRC file cover detection issue)
This commit is contained in:
parent
14891bdd52
commit
1ee09b1930
@ -370,6 +370,11 @@ class MobiReader(object):
|
|||||||
opf.cover = 'images/%05d.jpg'%(self.book_header.exth.cover_offset+1)
|
opf.cover = 'images/%05d.jpg'%(self.book_header.exth.cover_offset+1)
|
||||||
elif mi.cover is not None:
|
elif mi.cover is not None:
|
||||||
opf.cover = mi.cover
|
opf.cover = mi.cover
|
||||||
|
else:
|
||||||
|
opf.cover = 'images/%05d.jpg'%1
|
||||||
|
if not os.path.exists(os.path.join(os.path.dirname(htmlfile),
|
||||||
|
*opf.cover.split('/'))):
|
||||||
|
opf.cover = None
|
||||||
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 getattr(self, 'image_names', []):
|
for i in getattr(self, 'image_names', []):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user