aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/sort.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/routes/ui/sort.rs')
-rw-r--r--server/src/routes/ui/sort.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/server/src/routes/ui/sort.rs b/server/src/routes/ui/sort.rs
index c7fbfc2..143a101 100644
--- a/server/src/routes/ui/sort.rs
+++ b/server/src/routes/ui/sort.rs
@@ -139,14 +139,14 @@ pub fn filter_and_sort_nodes(
o &= !match p {
FilterProperty::FederationLocal => node.federated.is_none(),
FilterProperty::FederationRemote => node.federated.is_some(),
- FilterProperty::KindMovie => node.kind == NodeKind::Movie,
- FilterProperty::KindVideo => node.kind == NodeKind::Video,
- FilterProperty::KindCollection => node.kind == NodeKind::Collection,
- FilterProperty::KindChannel => node.kind == NodeKind::Channel,
- FilterProperty::KindShow => node.kind == NodeKind::Show,
- FilterProperty::KindSeries => node.kind == NodeKind::Series,
- FilterProperty::KindSeason => node.kind == NodeKind::Season,
- FilterProperty::KindEpisode => node.kind == NodeKind::Episode,
+ FilterProperty::KindMovie => node.kind == Some(NodeKind::Movie),
+ FilterProperty::KindVideo => node.kind == Some(NodeKind::Video),
+ FilterProperty::KindCollection => node.kind == Some(NodeKind::Collection),
+ FilterProperty::KindChannel => node.kind == Some(NodeKind::Channel),
+ FilterProperty::KindShow => node.kind == Some(NodeKind::Show),
+ FilterProperty::KindSeries => node.kind == Some(NodeKind::Series),
+ FilterProperty::KindSeason => node.kind == Some(NodeKind::Season),
+ FilterProperty::KindEpisode => node.kind == Some(NodeKind::Episode),
FilterProperty::Watched => udata.watched == WatchedState::Watched,
FilterProperty::Unwatched => udata.watched == WatchedState::None,
FilterProperty::WatchProgress => {