pmvhaven category option

This commit is contained in:
Simon
2025-07-18 10:02:54 +00:00
parent 0b2e1478ea
commit 90f85dc6e8
3 changed files with 58 additions and 5 deletions

View File

@@ -115,6 +115,7 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
.unwrap_or_default()
.to_string();
let mut status = Status::new();
// pronhub
status.add_channel(Channel {
id: "pornhub".to_string(),
name: "Pornhub".to_string(),
@@ -126,6 +127,7 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
options: vec![],
nsfw: true,
});
// pmvhaven
status.add_channel(Channel {
id: "pmvhaven".to_string(),
name: "Pmvhaven".to_string(),
@@ -134,11 +136,49 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
favicon: "https://www.google.com/s2/favicons?sz=64&domain=pmvhaven.com".to_string(),
status: "active".to_string(),
categories: vec![],
options: vec![],
options: vec![
ChannelOption {
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(),
options: vec![
FilterOption {
id: "all".to_string(),
title: "All".to_string(),
},
FilterOption {
id: "pmv".to_string(),
title: "PMV".to_string(),
},
FilterOption {
id: "hmv".to_string(),
title: "HMV".to_string(),
},
FilterOption {
id: "tiktok".to_string(),
title: "Tiktok".to_string(),
},
FilterOption {
id: "koreanbj".to_string(),
title: "KoreanBJ".to_string(),
},
FilterOption {
id: "hypno".to_string(),
title: "Hypno".to_string(),
},
FilterOption {
id: "other".to_string(),
title: "Other".to_string(),
},
],
multiSelect: false,
},],
nsfw: true,
});
if clientversion >= ClientVersion::new(22, 97, "22a".to_string()) {
//add perverzija
// perverzija
status.add_channel(Channel {
id: "perverzija".to_string(),
name: "Perverzija".to_string(),