client gate for sxyprn

This commit is contained in:
Simon
2025-09-05 05:38:18 +00:00
parent 8a57d0c2bf
commit 436e33d015

View File

@@ -960,69 +960,70 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
cacheDuration: 1800, cacheDuration: 1800,
}); });
//sxyprn if clientversion >= ClientVersion::new(22, 105, "22i".to_string()) {
status.add_channel(Channel { //sxyprn
id: "sxyprn".to_string(), status.add_channel(Channel {
name: "SexyPorn".to_string(), id: "sxyprn".to_string(),
description: "Free Porn Site".to_string(), name: "SexyPorn".to_string(),
premium: false, description: "Free Porn Site".to_string(),
favicon: "https://www.google.com/s2/favicons?sz=64&domain=sxyprn.com".to_string(), premium: false,
status: "active".to_string(), favicon: "https://www.google.com/s2/favicons?sz=64&domain=sxyprn.com".to_string(),
categories: vec![], status: "active".to_string(),
options: vec![ categories: vec![],
ChannelOption { options: vec![
id: "sort".to_string(), ChannelOption {
title: "Sort".to_string(), id: "sort".to_string(),
description: "Sort the Videos".to_string(), //"Sort the videos by Date or Name.".to_string(), title: "Sort".to_string(),
systemImage: "list.number".to_string(), description: "Sort the Videos".to_string(), //"Sort the videos by Date or Name.".to_string(),
colorName: "blue".to_string(), systemImage: "list.number".to_string(),
options: vec![ colorName: "blue".to_string(),
FilterOption { options: vec![
id: "latest".to_string(), FilterOption {
title: "Latest".to_string(), id: "latest".to_string(),
}, title: "Latest".to_string(),
FilterOption { },
id: "views".to_string(), FilterOption {
title: "Views".to_string(), id: "views".to_string(),
}, title: "Views".to_string(),
FilterOption { },
id: "rating".to_string(), FilterOption {
title: "Rating".to_string(), id: "rating".to_string(),
}, title: "Rating".to_string(),
FilterOption { },
id: "orgasmic".to_string(), FilterOption {
title: "Orgasmic".to_string(), id: "orgasmic".to_string(),
}, title: "Orgasmic".to_string(),
], },
multiSelect: false, ],
}, multiSelect: false,
ChannelOption { },
id: "filter".to_string(), ChannelOption {
title: "Filter".to_string(), id: "filter".to_string(),
description: "Filter the Videos".to_string(), //"Sort the videos by Date or Name.".to_string(), title: "Filter".to_string(),
systemImage: "line.horizontal.3.decrease.circle".to_string(), description: "Filter the Videos".to_string(), //"Sort the videos by Date or Name.".to_string(),
colorName: "green".to_string(), systemImage: "line.horizontal.3.decrease.circle".to_string(),
options: vec![ colorName: "green".to_string(),
FilterOption { options: vec![
id: "top".to_string(), FilterOption {
title: "Top".to_string(), id: "top".to_string(),
}, title: "Top".to_string(),
FilterOption { },
id: "other".to_string(), FilterOption {
title: "Other".to_string(), id: "other".to_string(),
}, title: "Other".to_string(),
FilterOption { },
id: "all".to_string(), FilterOption {
title: "All".to_string(), id: "all".to_string(),
}, title: "All".to_string(),
], },
multiSelect: false, ],
}, multiSelect: false,
], },
nsfw: true, ],
cacheDuration: 1800, nsfw: true,
}); cacheDuration: 1800,
});
}
status.iconUrl = format!("http://{}/favicon.ico", host).to_string(); status.iconUrl = format!("http://{}/favicon.ico", host).to_string();
Ok(web::HttpResponse::Ok().json(&status)) Ok(web::HttpResponse::Ok().json(&status))
} }