Not allowing autoplay is sufficient

merge-requests/30/head
Bob Mottram 2022-04-06 11:27:46 +01:00
parent 802bb77da2
commit 9f976a002d
1 changed files with 0 additions and 5 deletions

View File

@ -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 += \
"<center>\n<iframe loading=\"lazy\" " + \
"decoding=\"async\" src=\"" + \