This commit is contained in:
Simon
2025-06-06 09:19:40 +00:00
parent 69301f1e97
commit 95eeb273f5
2 changed files with 37 additions and 39 deletions

View File

@@ -120,25 +120,25 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
status: "active".to_string(),
categories: vec![],
options: vec![
// ChannelOption {
// id: "sort".to_string(),
// title: "Sort".to_string(),
// description: "Sort the Videos".to_string(), //"Sort the videos by Date or Name.".to_string(),
// systemImage: "list.number".to_string(),
// colorName: "blue".to_string(),
// options: vec![
// FilterOption {
// id: "date".to_string(),
// title: "Date".to_string(),
// },
// FilterOption {
// id: "name".to_string(),
// title: "Name".to_string(),
// },
// ],
// multiSelect: false,
// },
ChannelOption {
id: "sort".to_string(),
title: "Sort".to_string(),
description: "Sort the Videos".to_string(), //"Sort the videos by Date or Name.".to_string(),
systemImage: "list.number".to_string(),
colorName: "blue".to_string(),
options: vec![
FilterOption {
id: "date".to_string(),
title: "Date".to_string(),
},
FilterOption {
id: "name".to_string(),
title: "Name".to_string(),
},
],
multiSelect: false,
},
ChannelOption {
id: "featured".to_string(),
title: "Featured".to_string(),
description: "Filter Featured Videos.".to_string(),
@@ -156,24 +156,24 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
],
multiSelect: false,
},
ChannelOption {
id: "duration".to_string(),
title: "Duration".to_string(),
description: "Filter the videos by duration.".to_string(),
systemImage: "timer".to_string(),
colorName: "green".to_string(),
options: vec![
FilterOption {
id: "short".to_string(),
title: "< 1h".to_string(),
},
FilterOption {
id: "long".to_string(),
title: "> 1h".to_string(),
},
],
multiSelect: true,
},
// ChannelOption {
// id: "duration".to_string(),
// title: "Duration".to_string(),
// description: "Filter the videos by duration.".to_string(),
// systemImage: "timer".to_string(),
// colorName: "green".to_string(),
// options: vec![
// FilterOption {
// id: "short".to_string(),
// title: "< 1h".to_string(),
// },
// FilterOption {
// id: "long".to_string(),
// title: "> 1h".to_string(),
// },
// ],
// multiSelect: true,
// },
],
nsfw: true,
});