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():
|
for item in self.itermanifest():
|
||||||
if item.get('href', None) == cover_id:
|
if item.get('href', None) == cover_id:
|
||||||
mt = item.get('media-type', '')
|
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)
|
return item.get('href', None)
|
||||||
elif self.package_version >= 3.0:
|
elif self.package_version >= 3.0:
|
||||||
for item in self.itermanifest():
|
for item in self.itermanifest():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user