From 406bec1e868d180f407e82d0f38faf6d293bbd1e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Aug 2019 12:38:57 +0100 Subject: [PATCH] Allow relative paths to audio --- webinterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index 59f5bc205..81b04195b 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1199,7 +1199,7 @@ def addEmbeddedAudio(content: str) -> str: w=w[:-1] if not w.endswidth(extension): continue - if not (w.startswith('http') or w.startswith('dat:')): + if not (w.startswith('http') or w.startswith('dat:') or '/' in w): continue url=w content+='