update rss_proxy.py
* testing fixes description
This commit is contained in:
@@ -102,7 +102,13 @@ def init_proxy(app):
|
||||
new_items.append(item_str)
|
||||
|
||||
final_items = cached_items + new_items
|
||||
response_xml = f'<?xml version="1.0" encoding="UTF-8"?><rss><channel>{"".join(final_items)}</channel></rss>'
|
||||
response_xml = f"""<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0">
|
||||
<channel><title>Tapochek.net RSS</title>
|
||||
<link>http://tapochek.net/</link>
|
||||
<ttl>15</ttl>
|
||||
{"".join(final_items)}
|
||||
</channel></rss>"""
|
||||
|
||||
return Response(response_xml, content_type="application/xml; charset=utf-8")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user