mirror of https://gitlab.com/bashrc2/epicyon
Merge branch 'main' of gitlab.com:bashrc2/epicyon
commit
7dd5d5011f
|
|
@ -202,6 +202,9 @@ def _add_embedded_video_from_sites(translate: {}, content: str,
|
||||||
if '/c/' in url:
|
if '/c/' in url:
|
||||||
# don't try to embed peertube channel page
|
# don't try to embed peertube channel page
|
||||||
continue
|
continue
|
||||||
|
if '?sort=' in url:
|
||||||
|
# don't try to embed a sorted list
|
||||||
|
continue
|
||||||
if '/w/' in url:
|
if '/w/' in url:
|
||||||
if '/videos/' not in url:
|
if '/videos/' not in url:
|
||||||
url = url.replace('/w/', '/videos/embed/')
|
url = url.replace('/w/', '/videos/embed/')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue