update rss_proxy.py

* testing fixes description
This commit is contained in:
2025-03-05 22:37:21 +03:00
parent f6bba0023f
commit 09528e0c3c

View File

@@ -51,6 +51,7 @@ def init_proxy(app):
raw_query = request.query_string.decode()
if raw_query.startswith("url="):
url = urllib.parse.unquote(raw_query[4:])
url = html.unescape(url)
else:
return "Missing URL", 400
@@ -110,7 +111,6 @@ def init_proxy(app):
final_items = cached_items + new_items
response_xml = f"""{_head_html}{"".join(final_items)}</channel></rss>"""
response_xml = response_xml.replace("&amp;", "&")
return Response(response_xml, content_type="application/xml; charset=utf-8")