master
Bob Mottram 2019-08-30 13:18:39 +01:00
parent 2fe5d06d3b
commit 37fb6aa6bc
1 changed files with 2 additions and 2 deletions

View File

@ -1197,7 +1197,7 @@ def addEmbeddedAudio(content: str) -> str:
w=w[:-1]
if w.endswith(':'):
w=w[:-1]
if not w.endswidth(extension):
if not w.endswith(extension):
continue
if not (w.startswith('http') or w.startswith('dat:') or '/' in w):
continue
@ -1230,7 +1230,7 @@ def addEmbeddedVideo(content: str,width=400,height=300) -> str:
w=w[:-1]
if w.endswith(':'):
w=w[:-1]
if not w.endswidth(extension):
if not w.endswith(extension):
continue
if not (w.startswith('http') or w.startswith('dat:') or '/' in w):
continue