allpornstreamd done and sxyprn updated
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
use crate::proxies::allpornstream::AllPornStreamProxy;
|
||||
use crate::proxies::archivebate::ArchivebateProxy;
|
||||
use crate::proxies::clapdat::ClapdatProxy;
|
||||
use crate::proxies::doodstream::DoodstreamProxy;
|
||||
@@ -16,6 +17,7 @@ use crate::proxies::vidara::VidaraProxy;
|
||||
use crate::proxies::lulustream::LulustreamProxy;
|
||||
use crate::proxies::thaiporntv::ThaipornTvProxy;
|
||||
|
||||
pub mod allpornstream;
|
||||
pub mod archivebate;
|
||||
pub mod clapdat;
|
||||
pub mod doodstream;
|
||||
@@ -40,6 +42,7 @@ pub mod vjav;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum AnyProxy {
|
||||
AllPornStream(AllPornStreamProxy),
|
||||
Archivebate(ArchivebateProxy),
|
||||
Doodstream(DoodstreamProxy),
|
||||
Sxyprn(SxyprnProxy),
|
||||
@@ -65,6 +68,7 @@ pub trait Proxy {
|
||||
impl Proxy for AnyProxy {
|
||||
async fn get_video_url(&self, url: String, requester: web::types::State<Requester>) -> String {
|
||||
match self {
|
||||
AnyProxy::AllPornStream(p) => p.get_video_url(url, requester).await,
|
||||
AnyProxy::Archivebate(p) => p.get_video_url(url, requester).await,
|
||||
AnyProxy::Doodstream(p) => p.get_video_url(url, requester).await,
|
||||
AnyProxy::Sxyprn(p) => p.get_video_url(url, requester).await,
|
||||
|
||||
Reference in New Issue
Block a user