From f94928e86dd21673171c134ea160783c76063e17 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 21 Sep 2021 21:56:15 +0200 Subject: [PATCH] fsdf --- files/helpers/sanitize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index d04454af2..fe95ee2b8 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -245,13 +245,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}' - htmlsource = f'
' + htmlsource = f'
' sanitized = sanitized.replace(replacing, htmlsource.replace("watch?v=", "embed/")) for i in re.finditer('{url}' - htmlsource = f'
' + htmlsource = f'
' sanitized = sanitized.replace(replacing, htmlsource) for i in re.finditer('