cleanup and fixed query

This commit is contained in:
Simon
2025-06-03 12:59:31 +00:00
parent 261c81e391
commit a7610e1bb3
5 changed files with 89 additions and 87 deletions

View File

@@ -38,68 +38,68 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
status: "active".to_string(),
categories: vec![],
options: vec![
Channel_Option {
ChannelOption {
id: "channels".to_string(),
title: "Sites".to_string(),
description: "Websites included in search results.".to_string(),
systemImage: "network".to_string(),
colorName: "purple".to_string(),
options: vec![
Filter_Option {
FilterOption {
id: "perverzija".to_string(),
title: "Perverzija".to_string(),
},
],
multiSelect: true,
},
Channel_Option {
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![
Filter_Option {
FilterOption {
id: "date".to_string(),
title: "Date".to_string(),
},
Filter_Option {
FilterOption {
id: "name".to_string(),
title: "Name".to_string(),
},
],
multiSelect: false,
},
Channel_Option {
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![
Filter_Option {
FilterOption {
id: "short".to_string(),
title: "< 1h".to_string(),
},
Filter_Option {
FilterOption {
id: "long".to_string(),
title: "> 1h".to_string(),
},
],
multiSelect: true,
},
Channel_Option {
ChannelOption {
id: "featured".to_string(),
title: "Featured".to_string(),
description: "Filter Featured Videos.".to_string(),
systemImage: "star".to_string(),
colorName: "red".to_string(),
options: vec![
Filter_Option {
FilterOption {
id: "all".to_string(),
title: "No".to_string(),
},
Filter_Option {
FilterOption {
id: "featured".to_string(),
title: "Yes".to_string(),
},
@@ -118,36 +118,36 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
status: "active".to_string(),
categories: vec![],
options: vec![
Channel_Option {
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![
Filter_Option {
FilterOption {
id: "date".to_string(),
title: "Date".to_string(),
},
Filter_Option {
FilterOption {
id: "name".to_string(),
title: "Name".to_string(),
},
],
multiSelect: false,
},
Channel_Option {
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![
Filter_Option {
FilterOption {
id: "short".to_string(),
title: "< 1h".to_string(),
},
Filter_Option {
FilterOption {
id: "long".to_string(),
title: "> 1h".to_string(),
},