mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix handling of user specified masthead image
This commit is contained in:
parent
d850f6e2d6
commit
8e9590373f
@ -48,11 +48,7 @@ class MOBIOutput(OutputFormatPlugin):
|
||||
self.opts.mobi_periodical = False
|
||||
|
||||
def check_for_masthead(self):
|
||||
found = False
|
||||
for typ in self.oeb.guide:
|
||||
if type == 'masthead':
|
||||
found = True
|
||||
break
|
||||
found = 'masthead' in self.oeb.guide
|
||||
if not found:
|
||||
self.oeb.log.debug('No masthead found, generating default one...')
|
||||
from calibre.resources import server_resources
|
||||
|
Loading…
x
Reference in New Issue
Block a user