From 9594c13e3ddb5b4ae75dd5d1d21cdded8cec467a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 6 Oct 2021 04:06:07 +0200 Subject: [PATCH] fsdsfd --- files/helpers/sanitize.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)