From c9ec8d4d1771365d315f14209e0671064ddbe935 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 1 Oct 2019 12:25:10 +0100 Subject: [PATCH] Support invidio.us links --- webinterface.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webinterface.py b/webinterface.py index a6c6dbcc2..157fad0d3 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1519,6 +1519,14 @@ def addEmbeddedVideoFromSites(translate: {},content: str,width=400,height=300) - content=content+"
" return content + videoSite='https://invidio.us' + if '"'+videoSite in content: + url=content.split('"'+videoSite)[1] + if '"' in url: + url=url.split('"')[0].replace('/watch?v=','/embed/') + content=content+"
" + return content + videoSite='https://media.ccc.de' if '"'+videoSite in content: url=content.split('"'+videoSite)[1]