mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-28 12:14:56 +01:00
...
This commit is contained in:
parent
4ad90f991a
commit
a51dcb24cd
1 changed files with 1 additions and 1 deletions
|
|
@ -928,7 +928,7 @@ def first_pass(data):
|
|||
|
||||
# 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…
Reference in a new issue