- add RuTube servise
This commit is contained in:
Alexandrina-Kuzeleva
2025-11-10 17:00:10 +03:00
parent 0cb8d21290
commit 25c640fabb
9 changed files with 102 additions and 0 deletions

View File

@@ -174,6 +174,17 @@ def youtube_video_renderer(video_id):
</iframe>
"""
def rutube_video_renderer(video_id):
return f"""
<iframe width="100%" height="400"
src="https://rutube.ru/play/embed/{video_id}"
title="Rutube video player"
frameborder="0"
class="rutube-video"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen>
</iframe>
"""
def embed_renderer(details):
type = details.split("|||")[0]