mirror of https://gitlab.com/bashrc2/epicyon
Don't try to embed peertube channel pages
parent
d2942d5460
commit
23b7c25261
|
@ -171,6 +171,9 @@ def _add_embedded_video_from_sites(translate: {}, content: str,
|
||||||
if '"' not in url:
|
if '"' not in url:
|
||||||
continue
|
continue
|
||||||
url = url.split('"')[0]
|
url = url.split('"')[0]
|
||||||
|
if '/c/' in url:
|
||||||
|
# don't try to embed peertube channel page
|
||||||
|
continue
|
||||||
url = url.replace('/w/', '/embed/')
|
url = url.replace('/w/', '/embed/')
|
||||||
url = url.replace('/watch/', '/embed/')
|
url = url.replace('/watch/', '/embed/')
|
||||||
content += \
|
content += \
|
||||||
|
|
Loading…
Reference in New Issue