diff --git a/webinterface.py b/webinterface.py index 955451638..d83657311 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1564,6 +1564,8 @@ def addEmbeddedVideoFromSites(translate: {},content: str,width=400,height=300) - url=content.split('"'+videoSite)[1] if '"' in url: url=url.split('"')[0].replace('/watch?v=','/embed/') + if '&' in url: + url=url.split('&')[0] content=content+"
" return content @@ -1573,6 +1575,8 @@ def addEmbeddedVideoFromSites(translate: {},content: str,width=400,height=300) - url=content.split('"'+videoSite)[1] if '"' in url: url=url.split('"')[0].replace('/watch?v=','/embed/') + if '&' in url: + url=url.split('&')[0] content=content+"
" return content