This commit is contained in:
Simon
2025-09-13 07:26:55 +00:00
parent a096ec66f2
commit 5e5838debf
5 changed files with 272 additions and 6 deletions

View File

@@ -813,6 +813,57 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
cacheDuration: Some(1800),
});
// youjizz
status.add_channel(Channel {
id: "youjizz".to_string(),
name: "YouJizz".to_string(),
description: "YouJizz Porntube".to_string(),
premium: false,
favicon: "https://www.google.com/s2/favicons?sz=64&domain=www.youjizz.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(),
},
FilterOption {
id: "top-rated-week".to_string(),
title: "Top Rated (Week)".to_string(),
},
FilterOption {
id: "top-rated-month".to_string(),
title: "Top Rated (Month)".to_string(),
},
FilterOption {
id: "trending".to_string(),
title: "Trending".to_string(),
},
FilterOption {
id: "random".to_string(),
title: "Random".to_string(),
},
],
multiSelect: false,
}],
nsfw: true,
cacheDuration: None,
});
// porn00
// status.add_channel(Channel {
// id: "noodlemagazine".to_string(),
@@ -1190,6 +1241,9 @@ pub fn get_provider(channel: &str) -> Option<AnyProvider> {
"freshporno" => Some(AnyProvider::Freshporno(
crate::providers::freshporno::FreshpornoProvider::new(),
)),
"youjizz" => Some(AnyProvider::Youjizz(
crate::providers::youjizz::YoujizzProvider::new(),
)),
_ => Some(AnyProvider::Perverzija(PerverzijaProvider::new())),
}
}