testing spankbang

This commit is contained in:
Simon
2025-07-13 09:33:36 +00:00
parent b7a3daebe3
commit 9cf532e831
5 changed files with 95 additions and 656 deletions

View File

@@ -5,7 +5,6 @@ use ntex::web;
use ntex::web::HttpRequest;
use tokio::{task, time};
use crate::providers::erothots::ErothotsProvider;
use crate::providers::hanime::HanimeProvider;
use crate::providers::perverzija::PerverzijaProvider;
use crate::providers::spankbang::SpankbangProvider;
@@ -249,28 +248,6 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
],
nsfw: true,
});
// status.add_channel(Channel {
// id: "erothots".to_string(),
// name: "Erothots".to_string(),
// description: "Free Onlyfans Content".to_string(),
// premium: false,
// favicon: "https://www.google.com/s2/favicons?sz=64&domain=erothots.co".to_string(),
// status: "active".to_string(),
// categories: vec![],
// options: vec![],
// nsfw: true,
// });
// status.add_channel(Channel {
// id: "fapello".to_string(),
// name: "Fapello".to_string(),
// description: "Free Onlyfans Content".to_string(),
// premium: false,
// favicon: "https://www.google.com/s2/favicons?sz=64&domain=fapello.com".to_string(),
// status: "active".to_string(),
// categories: vec![],
// options: vec![],
// nsfw: true,
// });
status.add_channel(Channel {
id: "spankbang".to_string(),
name: "Work in Progress - SpankBang".to_string(),
@@ -390,7 +367,6 @@ pub fn get_provider(channel: &str) -> Option<AnyProvider> {
"perverzija" => Some(AnyProvider::Perverzija(PerverzijaProvider::new())),
"hanime" => Some(AnyProvider::Hanime(HanimeProvider::new())),
"spankbang" => Some(AnyProvider::Spankbang(SpankbangProvider::new())),
"erothots" => Some(AnyProvider::Erothots(ErothotsProvider::new())), // ErothotsProvider is not implemented yet
_ => Some(AnyProvider::Perverzija(PerverzijaProvider::new())),
}
}