mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-29 06:56:15 +01:00
...
This commit is contained in:
parent
ba59ac679d
commit
e178f179e1
1 changed files with 1 additions and 1 deletions
|
|
@ -123,9 +123,9 @@ def _read_opf(self):
|
|||
opf = etree.fromstring(data)
|
||||
self.logger.warn('OPF contains invalid tours section')
|
||||
except etree.XMLSyntaxError:
|
||||
self.logger.warn('OPF contains invalid markup, trying to parse it anyway')
|
||||
from calibre.ebooks.oeb.parse_utils import 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)
|
||||
if ns not in ('', OPF1_NS, OPF2_NS):
|
||||
|
|
|
|||
Loading…
Reference in a new issue