mirror of https://gitlab.com/bashrc2/epicyon
Not allowing autoplay is sufficient
parent
802bb77da2
commit
9f976a002d
|
@ -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=\"" + \
|
||||
|
|
Loading…
Reference in New Issue