Check Book: Silence incorrect warning about guide references to cover image in azw3 format

This commit is contained in:
Kovid Goyal 2014-10-25 21:19:31 +05:30
parent a3c57067d0
commit efd349ae89

View File

@ -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: