Allow relative paths to audio

master
Bob Mottram 2019-08-30 12:38:57 +01:00
parent 3820a79ecd
commit 406bec1e86
1 changed files with 1 additions and 1 deletions

View File

@ -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+='<audio controls>'