update rss_proxy.py
* removed guid rewrite
This commit is contained in:
@@ -78,6 +78,10 @@ def init_proxy(app):
|
|||||||
new_items = []
|
new_items = []
|
||||||
|
|
||||||
for item in 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}"
|
cache_key = f"rss:item:{guid.text}"
|
||||||
cached_item = rdb.get(cache_key)
|
cached_item = rdb.get(cache_key)
|
||||||
|
|
||||||
@@ -88,7 +92,6 @@ def init_proxy(app):
|
|||||||
if cached_item:
|
if cached_item:
|
||||||
cached_items.append(cached_item.decode())
|
cached_items.append(cached_item.decode())
|
||||||
else:
|
else:
|
||||||
description = item.find("description")
|
|
||||||
|
|
||||||
normalize_xml_texts(item)
|
normalize_xml_texts(item)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user