allpornstreamd done and sxyprn updated

This commit is contained in:
Simon
2026-05-19 13:48:50 +00:00
committed by ForgeCode
parent bd8382d579
commit ad1ed1b68e
8 changed files with 1035 additions and 33 deletions

View File

@@ -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,