From 79d9313abd53506c89ae26f3e0b16f073b2f8831 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 21 Aug 2019 12:40:43 +0100 Subject: [PATCH] Append oembed --- webinterface.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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