This commit is contained in:
Kovid Goyal 2009-01-30 17:12:02 -08:00
commit 2c4edf7873

View File

@ -1005,7 +1005,10 @@ def merge_metadata(htmlfile, opf, opts):
mi.cover = os.path.abspath(cover) mi.cover = os.path.abspath(cover)
if not mi.title: if not mi.title:
mi.title = os.path.splitext(os.path.basename(htmlfile))[0] if htmlfile:
mi.title = os.path.splitext(os.path.basename(htmlfile))[0]
else:
mi.title = _('Unknown')
if not mi.authors: if not mi.authors:
mi.authors = [_('Unknown')] mi.authors = [_('Unknown')]
return mi return mi