mirror of https://gitlab.com/bashrc2/epicyon
peertube embed path
parent
8bd278c52c
commit
d2942d5460
|
@ -170,7 +170,9 @@ def _add_embedded_video_from_sites(translate: {}, content: str,
|
||||||
url = content.split(site_str)[1]
|
url = content.split(site_str)[1]
|
||||||
if '"' not in url:
|
if '"' not in url:
|
||||||
continue
|
continue
|
||||||
url = url.split('"')[0].replace('/watch/', '/embed/')
|
url = url.split('"')[0]
|
||||||
|
url = url.replace('/w/', '/embed/')
|
||||||
|
url = url.replace('/watch/', '/embed/')
|
||||||
content += \
|
content += \
|
||||||
"<center>\n<iframe loading=\"lazy\" " + \
|
"<center>\n<iframe loading=\"lazy\" " + \
|
||||||
"sandbox=\"allow-same-origin " + \
|
"sandbox=\"allow-same-origin " + \
|
||||||
|
|
Loading…
Reference in New Issue