From 0b5e8e5e8a2b4c2106c2830dff51f6577f6b9a0c Mon Sep 17 00:00:00 2001 From: bacon Date: Mon, 10 Mar 2025 20:54:49 +0300 Subject: [PATCH] update rss_proxy.py * removed guid rewrite --- proxy/rss_proxy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proxy/rss_proxy.py b/proxy/rss_proxy.py index 25a1450..b6f8686 100755 --- a/proxy/rss_proxy.py +++ b/proxy/rss_proxy.py @@ -78,6 +78,10 @@ def init_proxy(app): new_items = [] for item in items: + guid = item.find("guid") + if guid is None or not guid.text: + continue + cache_key = f"rss:item:{guid.text}" cached_item = rdb.get(cache_key) @@ -88,7 +92,6 @@ def init_proxy(app): if cached_item: cached_items.append(cached_item.decode()) else: - description = item.find("description") normalize_xml_texts(item)