New video embedding

This commit is contained in:
retoor 2025-04-09 11:03:39 +02:00
parent 2582df360a
commit 656ea5f90e

View File

@ -91,7 +91,7 @@ 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"]
and ("v=" in element.attrs["href"] or "si=" in element.attrs["href"])
):
video_name = None
if "v=" in element.attrs["href"]: