From efd349ae89e770e063a68af41ecfc1ade56c4631 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 25 Oct 2014 21:19:31 +0530 Subject: [PATCH] Check Book: Silence incorrect warning about guide references to cover image in azw3 format --- src/calibre/ebooks/oeb/polish/check/links.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/ebooks/oeb/polish/check/links.py b/src/calibre/ebooks/oeb/polish/check/links.py index 7d60ab3994..eaabca8248 100644 --- a/src/calibre/ebooks/oeb/polish/check/links.py +++ b/src/calibre/ebooks/oeb/polish/check/links.py @@ -228,6 +228,8 @@ def check_link_destinations(container): check_link_destination(container, dest_map, name, href, a, errors) elif mt == opf_type: for a in container.opf_xpath('//opf:reference[@href]'): + if container.book_type == 'azw3' and a.get('type') in {'cover', 'other.ms-coverimage-standard', 'other.ms-coverimage'}: + continue href = a.get('href') check_link_destination(container, dest_map, name, href, a, errors) elif mt == ncx_type: