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