Youtube url

merge-requests/30/head
Bob Mottram 2022-02-17 16:58:10 +00:00
parent 08e5f5ba8f
commit cc30725f6c
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ def _add_embedded_video_from_sites(translate: {}, content: str,
url = url.split('&')[0]
if '?utm_' in url:
url = url.split('?utm_')[0]
video_site = 'https://www.youtube.com/'
content += \
"<center>\n<iframe loading=\"lazy\" src=\"" + \
video_site + url + "\" width=\"" + str(width) + \