aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/routes')
-rw-r--r--server/src/routes/ui/sort.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/routes/ui/sort.rs b/server/src/routes/ui/sort.rs
index 542b7af..4f62639 100644
--- a/server/src/routes/ui/sort.rs
+++ b/server/src/routes/ui/sort.rs
@@ -33,6 +33,7 @@ form_enum!(
WatchProgress = "watch_progress",
KindMovie = "kind_movie",
KindVideo = "kind_video",
+ KindShortFormVideo = "kind_short_form_video",
KindCollection = "kind_collection",
KindChannel = "kind_channel",
KindShow = "kind_show",
@@ -90,6 +91,7 @@ impl FilterProperty {
&[
(KindMovie, "Movie"),
(KindVideo, "Video"),
+ (KindShortFormVideo, "Short Form Video"),
(KindCollection, "Collection"),
(KindChannel, "Channel"),
(KindShow, "Show"),
@@ -145,6 +147,7 @@ pub fn filter_and_sort_nodes(
FilterProperty::FederationRemote => node.federated.is_some(),
FilterProperty::KindMovie => node.kind == Some(NodeKind::Movie),
FilterProperty::KindVideo => node.kind == Some(NodeKind::Video),
+ FilterProperty::KindShortFormVideo => node.kind == Some(NodeKind::ShortFormVideo),
FilterProperty::KindCollection => node.kind == Some(NodeKind::Collection),
FilterProperty::KindChannel => node.kind == Some(NodeKind::Channel),
FilterProperty::KindShow => node.kind == Some(NodeKind::Show),