diff --git a/app/rss.py b/app/rss.py
index 0ec219a..5e8cfa4 100644
--- a/app/rss.py
+++ b/app/rss.py
@@ -52,16 +52,8 @@ def video_embed_html(article: Article, rss_safe: bool = False) -> str:
return ""
embed_url = vk_video_embed_url(article.video.source_url)
if rss_safe:
- iframe = ""
- if embed_url:
- iframe = (
- f'
'
- )
return f"""
Смотреть видео
-{iframe}
Смотреть исходное видео VK Видео
""".strip()
if not embed_url:
return ""
@@ -154,6 +146,11 @@ def cover_html(article: Article, rss_safe: bool = False) -> str:
def sanitize_rss_html(html: str) -> str:
+ # Dzen converts arbitrary iframes into an internal atomic:embed marker.
+ # RSS already carries the same video through media:player, so omit iframe
+ # markup here while keeping it available on the public article page.
+ html = re.sub(r"", "", html, flags=re.I | re.S)
+ html = re.sub(r"