Commit d8d3fd7b authored by Lysander Trischler's avatar Lysander Trischler

Repair another attempt to invalidate the feed XML

parent ef44fb9b
......@@ -57,12 +57,15 @@ if rss_url.startswith(("http://", "https://")):
else:
rss_stream = open(rss_url, "rb")
tree = xml.dom.minidom.parseString(rss_stream.read()
.replace("é", "é")
.replace("<br>", "&lt;br&gt;")
.replace("&ouml;", "ö")
.replace("< here >", "here")
.replace("<</a>", "</a>"))
xml_feed = (rss_stream.read()
.replace("&eacute;", "é")
.replace("<br>", "&lt;br&gt;")
.replace("&ouml;", "ö")
.replace("< here >", "here")
.replace("<</a>", "</a>")
.replace("Click < <a ", "Click <a ")
)
tree = xml.dom.minidom.parseString(xml_feed)
rss_stream.close()
channel = tree.getElementsByTagName("rss")[0].getElementsByTagName("channel")[0]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment