From 0c96722a8ba3f023b976ca4644b1128dd9659735 Mon Sep 17 00:00:00 2001 From: Roland Date: Sat, 25 Mar 2023 20:56:14 -0600 Subject: [PATCH] Filtering videos by mimetype rather than model. --- modules/videos/video/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/videos/video/lib.py b/modules/videos/video/lib.py index 212906f6..268cd9a0 100644 --- a/modules/videos/video/lib.py +++ b/modules/videos/video/lib.py @@ -82,7 +82,7 @@ def search_videos( ) -> Tuple[List[dict], int]: tag_names = tag_names or [] # Only search videos. - wheres = ["fg.model = 'video'"] + wheres = ["fg.mimetype LIKE 'video/%%'"] joins = list() join_video = False