diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 136486268..a02052ca8 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -226,13 +226,13 @@ def sanitize(sanitized, noimages=False): for i in re.finditer('" target="_blank">(https://youtube.com/watch\?v\=.*?)', sanitized): url = i.group(1) - replacing = f'{url}' + replacing = f'{url}' htmlsource = f'
' sanitized = sanitized.replace(replacing, htmlsource.replace("watch?v=", "embed/")) for i in re.finditer('{url}' + replacing = f'{url}' htmlsource = f'
' sanitized = sanitized.replace(replacing, htmlsource) @@ -241,7 +241,7 @@ def sanitize(sanitized, noimages=False): for i in re.finditer('{url}' + replacing = f'{url}' htmlsource = f'' sanitized = sanitized.replace(replacing, htmlsource)