From ed5d0d1434cf770d59acb25887f42ed319b86f4e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 10 Apr 2022 09:56:29 +0100 Subject: [PATCH] Don't try to embed peertube sorted lists --- webapp_media.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webapp_media.py b/webapp_media.py index ddb0fdeb4..860db676b 100644 --- a/webapp_media.py +++ b/webapp_media.py @@ -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/')