update rss_proxy.py

* removed print
This commit is contained in:
2025-03-08 20:33:43 +03:00
parent 46c0df83b9
commit c1c97a7ab9
2 changed files with 2 additions and 15 deletions

View File

@@ -88,7 +88,6 @@ def init_proxy(app):
title = item.find("title")
new_title = re.sub(r'&#\d+', '', title.text)
title.text = new_title
# print(title.text)
if cached_item:
cached_items.append(cached_item.decode())
@@ -99,9 +98,8 @@ def init_proxy(app):
if new_guid:
print(f"Заменяю GUID: {guid.text}{new_guid}")
guid.attrib.clear()
guid.text = new_guid # 🔹 Теперь подмена делается ДО нормализации
guid.text = new_guid
# 🔹 Теперь нормализуем весь item ПОСЛЕ замены guid
normalize_xml_texts(item)
item_str = ET.tostring(item, encoding="unicode")