Don't try to embed peertube sorted lists

main
Bob Mottram 2022-04-10 09:56:29 +01:00
parent 968836a40f
commit ed5d0d1434
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: 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/')