This commit is contained in:
Kovid Goyal 2012-05-17 12:35:06 +05:30
parent 9918fb99a8
commit 98b93e36d0

View File

@ -72,7 +72,7 @@ def explode(path, dest, question=lambda x:True):
dest), no_output=True)['result']
def set_cover(oeb):
if 'cover' not in oeb.guide: return
if 'cover' not in oeb.guide or oeb.metadata['cover']: return
cover = oeb.guide['cover']
if cover.href in oeb.manifest.hrefs:
item = oeb.manifest.hrefs[cover.href]