This commit is contained in:
Simon
2026-05-27 19:07:52 +00:00
committed by ForgeCode
parent 8220ce1095
commit b761325018
6 changed files with 452 additions and 8 deletions

View File

@@ -1,4 +1,3 @@
use crate::proxies::allpornstream::AllPornStreamProxy;
use crate::proxies::archivebate::ArchivebateProxy;
use crate::proxies::clapdat::ClapdatProxy;
use crate::proxies::doodstream::DoodstreamProxy;
@@ -48,7 +47,6 @@ pub mod vjav;
#[derive(Debug, Clone)]
pub enum AnyProxy {
AllPornStream(AllPornStreamProxy),
Archivebate(ArchivebateProxy),
Doodstream(DoodstreamProxy),
Sxyprn(SxyprnProxy),
@@ -75,7 +73,6 @@ 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,