Commit d3e34f0c authored by Lysander Trischler's avatar Lysander Trischler

Fix reading of broken RSS feed

parent 79d9acc8
......@@ -66,7 +66,9 @@ if rss_url.startswith(("http://", "https://")):
else:
rss_stream = open(rss_url, "rb")
tree = xml.dom.minidom.parseString(rss_stream.read().replace("é", "é"))
tree = xml.dom.minidom.parseString(rss_stream.read()
.replace("é", "é")
.replace("<br>", "&lt;br&gt;"))
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