hentai moon

This commit is contained in:
Simon
2025-08-19 10:41:21 +00:00
parent b383a36077
commit caed5088f5
3 changed files with 323 additions and 36 deletions

View File

@@ -648,42 +648,38 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
nsfw: true,
});
// status.add_channel(Channel {
// id: "hentaihaven".to_string(),
// name: "Hentaihaven".to_string(),
// description: "(Work in Progress) Watch free hentai video stream in English subtitles".to_string(),
// premium: false,
// favicon: "https://www.google.com/s2/favicons?sz=64&domain=hentaihaven.xxx".to_string(),
// status: "active".to_string(),
// categories: vec![],
// options: vec![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![
// FilterOption {
// id: "new-manga".to_string(),
// title: "New".to_string(),
// },
// FilterOption {
// id: "alphabet".to_string(),
// title: "A-Z".to_string(),
// },
// FilterOption {
// id: "rating".to_string(),
// title: "Rating".to_string(),
// },
// FilterOption {
// id: "views".to_string(),
// title: "Most Views".to_string(),
// },
// ],
// multiSelect: false,
// }],
// nsfw: true,
// });
status.add_channel(Channel {
id: "hentaimoon".to_string(),
name: "Hentai Moon".to_string(),
description: "Your Hentai Sputnik".to_string(),
premium: false,
favicon: "https://www.google.com/s2/favicons?sz=64&domain=hentai-moon.com".to_string(),
status: "active".to_string(),
categories: vec![],
options: vec![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![
FilterOption {
id: "new".to_string(),
title: "New".to_string(),
},
FilterOption {
id: "popular".to_string(),
title: "Popular".to_string(),
},
FilterOption {
id: "top-rated".to_string(),
title: "Top Rated".to_string(),
},
],
multiSelect: false,
}],
nsfw: true,
});
status.iconUrl = format!("http://{}/favicon.ico", host).to_string();
Ok(web::HttpResponse::Ok().json(&status))
@@ -806,6 +802,7 @@ pub fn get_provider(channel: &str) -> Option<AnyProvider> {
"perfectgirls" => Some(AnyProvider::Perfectgirls(crate::providers::perfectgirls::PerfectgirlsProvider::new())),
"okxxx" => Some(AnyProvider::Okxxx(crate::providers::okxxx::OkxxxProvider::new())),
"homoxxx" => Some(AnyProvider::Homoxxx(crate::providers::homoxxx::HomoxxxProvider::new())),
"hentaimoon" => Some(AnyProvider::Hentaimoon(crate::providers::hentaimoon::HentaimoonProvider::new())),
_ => Some(AnyProvider::Perverzija(PerverzijaProvider::new())),
}
}