mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-01-05 11:40:20 -05:00
...
This commit is contained in:
parent
4ad90f991a
commit
a51dcb24cd
@ -928,7 +928,7 @@ class Manifest(object):
|
||||
|
||||
# Handle weird (non-HTML/fragment) files
|
||||
if barename(data.tag) != 'html':
|
||||
if self.href.endswith('.ncx'):
|
||||
if barename(data.tag) == 'ncx':
|
||||
return self._parse_xml(orig_data)
|
||||
self.oeb.log.warn('File %r does not appear to be (X)HTML'%self.href)
|
||||
nroot = etree.fromstring('<html></html>')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user