Added shorts embedding support

This commit is contained in:
BordedDev 2025-06-27 12:10:16 +02:00
parent cc9fc0eeaf
commit ee11cde835

View File

@ -193,7 +193,7 @@ def embed_youtube(text):
"www.youtube-nocookie.com",
"youtube-nocookie.com",
]
and any(url.path.startswith(p) for p in ["/watch", "/embed"])
and any(url.path.startswith(p) for p in ["/watch", "/embed", "/shorts"])
):
queries = parse_qs(url.query)
if "v" in queries: