update rss_proxy.py

* testing fixes description
This commit is contained in:
2025-03-05 22:27:21 +03:00
parent 0bc4778fca
commit f6bba0023f

View File

@@ -73,7 +73,6 @@ def init_proxy(app):
root = ET.fromstring(xml_data)
items = root.findall(".//item")
cached_items = []
new_items = []
@@ -111,9 +110,9 @@ 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")
except Exception as e:
return f"Error: {e}", 500