mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9e6ee404b9
commit
673e84d4be
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user