mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1099 (EPUB Conversion Error - occurs on all files)
This commit is contained in:
parent
5fa80a52a9
commit
414f3ca778
@ -132,8 +132,9 @@ def resize_cover(im, opts):
|
|||||||
|
|
||||||
def process_title_page(mi, filelist, htmlfilemap, opts, tdir):
|
def process_title_page(mi, filelist, htmlfilemap, opts, tdir):
|
||||||
old_title_page = None
|
old_title_page = None
|
||||||
|
f = lambda x : os.path.normcase(os.path.normpath(x))
|
||||||
if mi.cover:
|
if mi.cover:
|
||||||
if os.path.samefile(filelist[0].path, mi.cover):
|
if f(filelist[0].path) == f(mi.cover):
|
||||||
old_title_page = htmlfilemap[filelist[0].path]
|
old_title_page = htmlfilemap[filelist[0].path]
|
||||||
|
|
||||||
#logger = logging.getLogger('html2epub')
|
#logger = logging.getLogger('html2epub')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user