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:
Kovid Goyal 2012-01-24 12:39:04 +05:30
parent 8a83c5b8fa
commit 97931077e0

View File

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