mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-03 12:04:31 +02:00
...
This commit is contained in:
parent
9e6ee404b9
commit
673e84d4be
1 changed files with 1 additions and 1 deletions
|
|
@ -1163,7 +1163,7 @@ def raster_cover(self):
|
|||
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…
Reference in a new issue