update rss_proxy.py
* removed guid rewrite
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user