diff --git a/webinterface.py b/webinterface.py index d435f2a0..0f5c2368 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1022,7 +1022,7 @@ def addEmbeddedVideo(content: str) -> str: if '"https://www.youtube.com' in content: url=content.split('"https://www.youtube.com')[1] if '"' in url: - url=url.split('"')[0] + url=url.split('"')[0].replace('/watch?v=','/embed/') content=content+"" return content