Fix handling of user specified masthead image

This commit is contained in:
Kovid Goyal 2009-07-07 15:24:24 -06:00
parent d850f6e2d6
commit 8e9590373f

View File

@ -48,11 +48,7 @@ class MOBIOutput(OutputFormatPlugin):
self.opts.mobi_periodical = False self.opts.mobi_periodical = False
def check_for_masthead(self): def check_for_masthead(self):
found = False found = 'masthead' in self.oeb.guide
for typ in self.oeb.guide:
if type == 'masthead':
found = True
break
if not found: if not found:
self.oeb.log.debug('No masthead found, generating default one...') self.oeb.log.debug('No masthead found, generating default one...')
from calibre.resources import server_resources from calibre.resources import server_resources