From 673e84d4be781f3021ddc96ef851cd44e4006c23 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 18 Jun 2016 09:10:02 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/metadata/opf2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/metadata/opf2.py b/src/calibre/ebooks/metadata/opf2.py index 27d748cc31..9a3868b428 100644 --- a/src/calibre/ebooks/metadata/opf2.py +++ b/src/calibre/ebooks/metadata/opf2.py @@ -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():