From 9f976a002d172e727d1254098c885626d790d944 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 6 Apr 2022 11:27:46 +0100 Subject: [PATCH] Not allowing autoplay is sufficient --- webapp_media.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/webapp_media.py b/webapp_media.py index 01d33119b..170e4a5a9 100644 --- a/webapp_media.py +++ b/webapp_media.py @@ -114,11 +114,6 @@ def _add_embedded_video_from_sites(translate: {}, content: str, url = url.split('&')[0] if '?utm_' in url: url = url.split('?utm_')[0] - # explicitly turn off autoplay - if '&autoplay=' not in url: - url += '&autoplay=0' - else: - url = url.replace('&autoplay=1', '&autoplay=0') content += \ "
\n