New video embedding
This commit is contained in:
parent
087f9c10b4
commit
e6bd7aa152
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user