mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Conversion pipeline: Fix items in the <guide> that refer to files with URL unsafe filenames being ignored. Fixes #920804 (Private bug)
This commit is contained in:
parent
8a83c5b8fa
commit
97931077e0
@ -327,7 +327,7 @@ class OEBReader(object):
|
||||
manifest = self.oeb.manifest
|
||||
for elem in xpath(opf, '/o2:package/o2:guide/o2:reference'):
|
||||
href = elem.get('href')
|
||||
path = urldefrag(href)[0]
|
||||
path = urlnormalize(urldefrag(href)[0])
|
||||
if path not in manifest.hrefs:
|
||||
self.logger.warn(u'Guide reference %r not found' % href)
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user