forked from indymedia/epicyon
Allow relative paths to audio
parent
3820a79ecd
commit
406bec1e86
|
@ -1199,7 +1199,7 @@ def addEmbeddedAudio(content: str) -> str:
|
||||||
w=w[:-1]
|
w=w[:-1]
|
||||||
if not w.endswidth(extension):
|
if not w.endswidth(extension):
|
||||||
continue
|
continue
|
||||||
if not (w.startswith('http') or w.startswith('dat:')):
|
if not (w.startswith('http') or w.startswith('dat:') or '/' in w):
|
||||||
continue
|
continue
|
||||||
url=w
|
url=w
|
||||||
content+='<audio controls>'
|
content+='<audio controls>'
|
||||||
|
|
Loading…
Reference in New Issue