From f3fd4dba521982449a9f430085d1130283f032f9 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 3 Oct 2021 04:27:39 +0200 Subject: [PATCH] dfsdsf --- 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 af5bf4ce3..0687d0046 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -242,13 +242,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('

(https:.*?\.mp4)

', sanitized):