Merge branch 'main' of gitlab.com:bashrc2/epicyon

merge-requests/30/head
Bob Mottram 2022-04-10 10:42:05 +01:00
commit 7dd5d5011f
1 changed files with 3 additions and 0 deletions

View File

@ -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/')