mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Fix #2017 (Another PRC file cover detection issue)
This commit is contained in:
parent
14891bdd52
commit
1ee09b1930
1 changed files with 5 additions and 0 deletions
|
|
@ -370,6 +370,11 @@ def create_opf(self, htmlfile, guide=None, root=None):
|
|||
opf.cover = 'images/%05d.jpg'%(self.book_header.exth.cover_offset+1)
|
||||
elif mi.cover is not None:
|
||||
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')]
|
||||
bp = os.path.dirname(htmlfile)
|
||||
for i in getattr(self, 'image_names', []):
|
||||
|
|
|
|||
Loading…
Reference in a new issue