From 947c757aa59ff25a1ea1f010f2a6926d8b6436ba Mon Sep 17 00:00:00 2001 From: Will Miao <13051207myq@gmail.com> Date: Wed, 30 Apr 2025 19:09:00 +0800 Subject: [PATCH] Revert the incorrect changes --- py/utils/constants.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/py/utils/constants.py b/py/utils/constants.py index 4d51e580..4ae269bf 100644 --- a/py/utils/constants.py +++ b/py/utils/constants.py @@ -8,7 +8,18 @@ NSFW_LEVELS = { } # preview extensions -PREVIEW_EXTENSIONS = ['.jpg', '.jpeg', '.png', '.webp', '.bmp', '.gif'] +PREVIEW_EXTENSIONS = [ + '.webp', + '.preview.webp', + '.preview.png', + '.preview.jpeg', + '.preview.jpg', + '.preview.mp4', + '.png', + '.jpeg', + '.jpg', + '.mp4' +] # Card preview image width CARD_PREVIEW_WIDTH = 480