From 51494a7440977d1bae81b2e02faa2d06491911a5 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 13 Sep 2023 20:44:19 +0300 Subject: [PATCH] allow all video formats in orgies --- files/routes/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 8cc4b0ed4..2f76eb75c 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1964,7 +1964,7 @@ def start_orgy(v): elif re.match(twitch_regex, normalized_link): orgy_type = 'twitch' data = re.search(twitch_regex, normalized_link).group(3) - elif normalized_link.endswith('.mp4'): + elif any((normalized_link.lower().endswith(f'.{x}') for x in VIDEO_FORMATS)): orgy_type = 'file' data = normalized_link else: