lxml is probably the thing to use here in place of the python default.
first install lxml.
then, instead of
from xml.etree import ElementTree
in external.py, use
from lxml.etree import ElementTree, XMLParser
parser = XMLParser(recover=True)
ElementTree.fromstring(opds.content, parser=parser)
lxml is probably the thing to use here in place of the python default.
first install lxml.
then, instead of
from xml.etree import ElementTreein external.py, use
from lxml.etree import ElementTree, XMLParserparser = XMLParser(recover=True)
ElementTree.fromstring(opds.content, parser=parser)