Fix #1099 (EPUB Conversion Error - occurs on all files)

This commit is contained in:
Kovid Goyal 2008-09-30 07:59:50 -07:00
parent 5fa80a52a9
commit 414f3ca778

View File

@ -132,8 +132,9 @@ def resize_cover(im, opts):
def process_title_page(mi, filelist, htmlfilemap, opts, tdir):
old_title_page = None
f = lambda x : os.path.normcase(os.path.normpath(x))
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]
#logger = logging.getLogger('html2epub')