From 23b7c25261c263d1869242eb1be0fbb670ef0629 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 22 Feb 2022 09:57:48 +0000 Subject: [PATCH] Don't try to embed peertube channel pages --- webapp_media.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webapp_media.py b/webapp_media.py index 4884d00ef..d70417452 100644 --- a/webapp_media.py +++ b/webapp_media.py @@ -171,6 +171,9 @@ def _add_embedded_video_from_sites(translate: {}, content: str, if '"' not in url: continue url = url.split('"')[0] + if '/c/' in url: + # don't try to embed peertube channel page + continue url = url.replace('/w/', '/embed/') url = url.replace('/watch/', '/embed/') content += \