Filtering videos by mimetype rather than model.

This commit is contained in:
Roland 2023-03-25 20:56:14 -06:00
parent 9b5c82219d
commit 0c96722a8b
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -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