filter/sort for pmvhaven

This commit is contained in:
Simon
2025-07-20 07:50:10 +00:00
parent 323fbfd5c9
commit 859ccd5efb
3 changed files with 9077 additions and 5 deletions

View File

@@ -166,8 +166,8 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
id: "category".to_string(),
title: "Category".to_string(),
description: "Category of PMV Video get".to_string(), //"Sort the videos by Date or Name.".to_string(),
systemImage: "list.number".to_string(),
colorName: "blue".to_string(),
systemImage: "folder".to_string(),
colorName: "yellow".to_string(),
options: vec![
FilterOption {
id: "all".to_string(),
@@ -199,6 +199,28 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
},
],
multiSelect: false,
},
ChannelOption {
id: "sort".to_string(),
title: "Filter".to_string(),
description: "Filter PMV Videos".to_string(),
systemImage: "list.number".to_string(),
colorName: "blue".to_string(),
options: vec![
FilterOption {
id: "Newest".to_string(),
title: "Newest".to_string(),
},
FilterOption {
id: "Top Rated".to_string(),
title: "Top Rated".to_string(),
},
FilterOption {
id: "Most Viewed".to_string(),
title: "Most Viewed".to_string(),
}
],
multiSelect: false,
}],
nsfw: true,
});