add erothots
This commit is contained in:
14
src/api.rs
14
src/api.rs
@@ -5,6 +5,7 @@ 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;
|
||||
@@ -247,10 +248,20 @@ 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: "spankbang".to_string(),
|
||||
name: "SpankBang".to_string(),
|
||||
name: "Work in Progress - SpankBang".to_string(),
|
||||
description: "Popular Porn Videos - SpankBang".to_string(),
|
||||
premium: false,
|
||||
favicon: "https://www.google.com/s2/favicons?sz=64&domain=spankbang.com".to_string(),
|
||||
@@ -367,6 +378,7 @@ 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())),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user