mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 16:33:51 +02:00
Check Book: Dont warn for nav document not in spine
This commit is contained in:
parent
a37d55c96d
commit
7167103401
1 changed files with 2 additions and 1 deletions
|
|
@ -363,11 +363,12 @@ def fl(x):
|
|||
unreferenced = set()
|
||||
|
||||
cover_name = container.guide_type_map.get('cover', None)
|
||||
nav_items = frozenset(container.manifest_items_with_property('nav'))
|
||||
|
||||
for name, mt in container.mime_map.iteritems():
|
||||
if mt in OEB_STYLES and name not in spine_styles:
|
||||
a(UnreferencedResource(name))
|
||||
elif mt in OEB_DOCS and name not in spine_docs:
|
||||
elif mt in OEB_DOCS and name not in spine_docs and name not in nav_items:
|
||||
a(UnreferencedDoc(name))
|
||||
elif (mt in OEB_FONTS or mt.partition('/')[0] in {'image', 'audio', 'video'}) and name not in spine_resources and name != cover_name:
|
||||
if mt.partition('/')[0] == 'image' and name == get_raster_cover_name(container):
|
||||
|
|
|
|||
Loading…
Reference in a new issue