This commit is contained in:
Kovid Goyal 2016-06-18 09:10:02 +05:30
parent 9e6ee404b9
commit 673e84d4be

View File

@ -1163,7 +1163,7 @@ class OPF(object): # {{{
for item in self.itermanifest():
if item.get('href', None) == cover_id:
mt = item.get('media-type', '')
if mt and mt.startswith('image/'):
if mt and 'xml' not in mt and 'html' not in mt:
return item.get('href', None)
elif self.package_version >= 3.0:
for item in self.itermanifest():