removed the all channel
This commit is contained in:
178
src/api.rs
178
src/api.rs
@@ -32,86 +32,86 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
|
|||||||
|
|
||||||
// You can now use `method`, `host`, and `port` as needed
|
// You can now use `method`, `host`, and `port` as needed
|
||||||
|
|
||||||
status.add_channel(Channel {
|
// status.add_channel(Channel {
|
||||||
id: "all".to_string(),
|
// id: "all".to_string(),
|
||||||
name: "SpaceMoehre's Hottub".to_string(),
|
// name: "SpaceMoehre's Hottub".to_string(),
|
||||||
favicon: format!("http://{}/static/favicon.ico", host).to_string(),
|
// favicon: format!("http://{}/static/favicon.ico", host).to_string(),
|
||||||
premium: false,
|
// premium: false,
|
||||||
description: "Work in Progress".to_string(),
|
// description: "Work in Progress".to_string(),
|
||||||
status: "active".to_string(),
|
// status: "active".to_string(),
|
||||||
categories: vec![],
|
// categories: vec![],
|
||||||
options: vec![
|
// options: vec![
|
||||||
ChannelOption {
|
// ChannelOption {
|
||||||
id: "channels".to_string(),
|
// id: "channels".to_string(),
|
||||||
title: "Sites".to_string(),
|
// title: "Sites".to_string(),
|
||||||
description: "Websites included in search results.".to_string(),
|
// description: "Websites included in search results.".to_string(),
|
||||||
systemImage: "network".to_string(),
|
// systemImage: "network".to_string(),
|
||||||
colorName: "purple".to_string(),
|
// colorName: "purple".to_string(),
|
||||||
options: vec![
|
// options: vec![
|
||||||
FilterOption {
|
// FilterOption {
|
||||||
id: "perverzija".to_string(),
|
// id: "perverzija".to_string(),
|
||||||
title: "Perverzija".to_string(),
|
// title: "Perverzija".to_string(),
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
multiSelect: true,
|
// multiSelect: true,
|
||||||
},
|
// },
|
||||||
ChannelOption {
|
// ChannelOption {
|
||||||
id: "sort".to_string(),
|
// id: "sort".to_string(),
|
||||||
title: "Sort".to_string(),
|
// title: "Sort".to_string(),
|
||||||
description: "Sort the Videos".to_string(), //"Sort the videos by Date or Name.".to_string(),
|
// description: "Sort the Videos".to_string(), //"Sort the videos by Date or Name.".to_string(),
|
||||||
systemImage: "list.number".to_string(),
|
// systemImage: "list.number".to_string(),
|
||||||
colorName: "blue".to_string(),
|
// colorName: "blue".to_string(),
|
||||||
options: vec![
|
// options: vec![
|
||||||
FilterOption {
|
// FilterOption {
|
||||||
id: "date".to_string(),
|
// id: "date".to_string(),
|
||||||
title: "Date".to_string(),
|
// title: "Date".to_string(),
|
||||||
},
|
// },
|
||||||
FilterOption {
|
// FilterOption {
|
||||||
id: "name".to_string(),
|
// id: "name".to_string(),
|
||||||
title: "Name".to_string(),
|
// title: "Name".to_string(),
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
multiSelect: false,
|
// multiSelect: false,
|
||||||
},
|
// },
|
||||||
ChannelOption {
|
// ChannelOption {
|
||||||
id: "duration".to_string(),
|
// id: "duration".to_string(),
|
||||||
title: "Duration".to_string(),
|
// title: "Duration".to_string(),
|
||||||
description: "Filter the videos by duration.".to_string(),
|
// description: "Filter the videos by duration.".to_string(),
|
||||||
systemImage: "timer".to_string(),
|
// systemImage: "timer".to_string(),
|
||||||
colorName: "green".to_string(),
|
// colorName: "green".to_string(),
|
||||||
options: vec![
|
// options: vec![
|
||||||
FilterOption {
|
// FilterOption {
|
||||||
id: "short".to_string(),
|
// id: "short".to_string(),
|
||||||
title: "< 1h".to_string(),
|
// title: "< 1h".to_string(),
|
||||||
},
|
// },
|
||||||
FilterOption {
|
// FilterOption {
|
||||||
id: "long".to_string(),
|
// id: "long".to_string(),
|
||||||
title: "> 1h".to_string(),
|
// title: "> 1h".to_string(),
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
multiSelect: true,
|
// multiSelect: true,
|
||||||
},
|
// },
|
||||||
ChannelOption {
|
// ChannelOption {
|
||||||
id: "featured".to_string(),
|
// id: "featured".to_string(),
|
||||||
title: "Featured".to_string(),
|
// title: "Featured".to_string(),
|
||||||
description: "Filter Featured Videos.".to_string(),
|
// description: "Filter Featured Videos.".to_string(),
|
||||||
systemImage: "star".to_string(),
|
// systemImage: "star".to_string(),
|
||||||
colorName: "red".to_string(),
|
// colorName: "red".to_string(),
|
||||||
options: vec![
|
// options: vec![
|
||||||
FilterOption {
|
// FilterOption {
|
||||||
id: "all".to_string(),
|
// id: "all".to_string(),
|
||||||
title: "No".to_string(),
|
// title: "No".to_string(),
|
||||||
},
|
// },
|
||||||
FilterOption {
|
// FilterOption {
|
||||||
id: "featured".to_string(),
|
// id: "featured".to_string(),
|
||||||
title: "Yes".to_string(),
|
// title: "Yes".to_string(),
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
multiSelect: false,
|
// multiSelect: false,
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
nsfw: true,
|
// nsfw: true,
|
||||||
});
|
// });
|
||||||
status.add_channel(Channel {
|
status.add_channel(Channel {
|
||||||
id: "perverzija".to_string(),
|
id: "perverzija".to_string(),
|
||||||
name: "Perverzija".to_string(),
|
name: "Perverzija".to_string(),
|
||||||
@@ -138,6 +138,24 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
multiSelect: false,
|
multiSelect: false,
|
||||||
|
},
|
||||||
|
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![
|
||||||
|
FilterOption {
|
||||||
|
id: "all".to_string(),
|
||||||
|
title: "No".to_string(),
|
||||||
|
},
|
||||||
|
FilterOption {
|
||||||
|
id: "featured".to_string(),
|
||||||
|
title: "Yes".to_string(),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
multiSelect: false,
|
||||||
},
|
},
|
||||||
ChannelOption {
|
ChannelOption {
|
||||||
id: "duration".to_string(),
|
id: "duration".to_string(),
|
||||||
|
|||||||
Reference in New Issue
Block a user