From 2828413412ae19e56d50b7fac95f1353aa27b299 Mon Sep 17 00:00:00 2001 From: bacon Date: Wed, 5 Mar 2025 20:06:03 +0300 Subject: [PATCH] update rss_proxy.py * testing fixes description --- proxy/rss_proxy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxy/rss_proxy.py b/proxy/rss_proxy.py index 9ed8dbd..d873f33 100755 --- a/proxy/rss_proxy.py +++ b/proxy/rss_proxy.py @@ -93,11 +93,11 @@ def init_proxy(app): # 🔹 Теперь нормализуем весь item ПОСЛЕ замены guid normalize_xml_texts(item) - item_str = ET.tostring(item, encoding="unicode") - item_str = html.unescape(item_str) title = item.find("title") - title.text = normalize_text(title.text) + title.text = re.sub(r'&#\d+;', '', title.text) + item_str = ET.tostring(item, encoding="unicode") + item_str = html.unescape(item_str) rdb.setex(cache_key, CACHE_TTL, item_str) new_items.append(item_str)