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:
|
||||
continue
|
||||
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('/watch/', '/embed/')
|
||||
content += \
|
||||
|
|
Loading…
Reference in New Issue