mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1269592 [Edit Book: New unreleased Manifest missing files test is buggy](https://bugs.launchpad.net/calibre/+bug/1269592)
This commit is contained in:
parent
15c2b493fa
commit
c838900d9c
@ -112,7 +112,7 @@ def check_opf(container):
|
||||
seen, dups = {}, {}
|
||||
for item in container.opf_xpath('/opf:package/opf:manifest/opf:item[@href]'):
|
||||
href = item.get('href')
|
||||
if not container.exists(href):
|
||||
if not container.exists(container.href_to_name(href, container.opf_name)):
|
||||
errors.append(MissingHref(container.opf_name, href, item.sourceline))
|
||||
if href in seen:
|
||||
if href not in dups:
|
||||
|
Loading…
x
Reference in New Issue
Block a user