mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
ba59ac679d
commit
e178f179e1
@ -123,9 +123,9 @@ class OEBReader(object):
|
|||||||
opf = etree.fromstring(data)
|
opf = etree.fromstring(data)
|
||||||
self.logger.warn('OPF contains invalid tours section')
|
self.logger.warn('OPF contains invalid tours section')
|
||||||
except etree.XMLSyntaxError:
|
except etree.XMLSyntaxError:
|
||||||
|
self.logger.warn('OPF contains invalid markup, trying to parse it anyway')
|
||||||
from calibre.ebooks.oeb.parse_utils import RECOVER_PARSER
|
from calibre.ebooks.oeb.parse_utils import RECOVER_PARSER
|
||||||
opf = etree.fromstring(data, parser=RECOVER_PARSER)
|
opf = etree.fromstring(data, parser=RECOVER_PARSER)
|
||||||
self.logger.warn('OPF contains invalid markup, trying to parse it anyway')
|
|
||||||
|
|
||||||
ns = namespace(opf.tag)
|
ns = namespace(opf.tag)
|
||||||
if ns not in ('', OPF1_NS, OPF2_NS):
|
if ns not in ('', OPF1_NS, OPF2_NS):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user