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)