New video embedding

This commit is contained in:
retoor 2025-04-09 10:55:30 +02:00
parent 087f9c10b4
commit e6bd7aa152

View File

@ -91,7 +91,6 @@ def embed_youtube(text):
for element in soup.find_all("a"):
if (
element.attrs["href"].startswith("https://www.you")
and "v=" in element.attrs["href"] or "si=" in element.attrs["href"]
):
video_name = element.attrs["href"].split("/")[-1]