forked from indymedia/epicyon
Replace trailing href
parent
af10d731a2
commit
041ed5bf53
|
@ -1191,7 +1191,7 @@ def addEmbeddedAudio(content: str) -> str:
|
||||||
for w in words:
|
for w in words:
|
||||||
if extension not in w:
|
if extension not in w:
|
||||||
continue
|
continue
|
||||||
w=w.replace('href="','')
|
w=w.replace('href="','').replace('">','')
|
||||||
if w.endswith('.'):
|
if w.endswith('.'):
|
||||||
w=w[:-1]
|
w=w[:-1]
|
||||||
if w.endswith('"'):
|
if w.endswith('"'):
|
||||||
|
@ -1228,7 +1228,7 @@ def addEmbeddedVideo(content: str,width=400,height=300) -> str:
|
||||||
for w in words:
|
for w in words:
|
||||||
if extension not in w:
|
if extension not in w:
|
||||||
continue
|
continue
|
||||||
w=w.replace('href="','')
|
w=w.replace('href="','').replace('">','')
|
||||||
if w.endswith('.'):
|
if w.endswith('.'):
|
||||||
w=w[:-1]
|
w=w[:-1]
|
||||||
if w.endswith('"'):
|
if w.endswith('"'):
|
||||||
|
|
Loading…
Reference in New Issue