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 += \