diff --git a/webinterface.py b/webinterface.py index 97423a70..50c0d624 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1032,7 +1032,9 @@ def addEmbeddedVideo(content: str,width=400,height=300) -> str: url=content.split('"'+videoSite)[1] if '"' in url: url=url.split('"')[0] - content=content+"
" + if not url.endswith('/oembed'): + url=url+'/oembed' + content=content+"
" return content # A selection of the current larger peertube sites, mostly French and German language