This commit is contained in:
Simon
2025-08-29 19:36:33 +00:00
parent 44b42170be
commit 53a4c62bfe
6 changed files with 570 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ pub mod homoxxx;
pub mod hentaimoon;
pub mod missav;
pub mod xxthots;
pub mod sxyprn;
pub mod porn00;
pub trait Provider {
async fn get_videos(
@@ -52,6 +54,8 @@ pub enum AnyProvider {
Hentaimoon(crate::providers::hentaimoon::HentaimoonProvider),
Missav(crate::providers::missav::MissavProvider),
Xxthots(crate::providers::xxthots::XxthotsProvider),
Sxyprn(crate::providers::sxyprn::SxyprnProvider),
Porn00(crate::providers::porn00::Porn00Provider),
}
impl Provider for AnyProvider {
@@ -142,6 +146,14 @@ impl Provider for AnyProvider {
p.get_videos(cache, pool, sort, query, page, per_page, options,)
.await
}
AnyProvider::Sxyprn(p) => {
p.get_videos(cache, pool, sort, query, page, per_page, options,)
.await
}
AnyProvider::Porn00(p) => {
p.get_videos(cache, pool, sort, query, page, per_page, options,)
.await
}
}
}
}