From 19e81a32143de3ce78c26da5c6dc86e235016095 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 2 Aug 2024 11:21:35 +0300 Subject: [PATCH] fix videos2 in /admin/delete_media --- files/helpers/regex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 18973ab6a..c4c975d73 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -190,7 +190,7 @@ numbered_list_regex = re.compile('((\n|^)[> ]*[0-9]+)[\.)] ', flags=re.A) image_link_regex = re.compile(f"https:\/\/(i\.)?{SITE}\/(chat_)?images\/[0-9]{{11,17}}r?\.webp", flags=re.A) -video_link_regex = re.compile(f"https://(videos\.)?{SITE}\/(videos\/)?[0-9a-zA-Z._-]{{4,66}}\.({video_regex_extensions})", flags=re.A) +video_link_regex = re.compile(f"https://(videos2?\.)?{SITE}\/(videos\/)?[0-9a-zA-Z._-]{{4,66}}\.({video_regex_extensions})", flags=re.A) asset_image_link_regex = re.compile(f"https:\/\/(i\.)?{SITE}\/assets\/images\/[\w\/]+.webp(\?x=\d+)?", flags=re.A)