This commit is contained in:
Simon
2025-08-20 15:06:58 +00:00
parent 24e4c5dfd7
commit 61aa6a966e
3 changed files with 323 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ pub mod okxxx;
pub mod homoxxx;
pub mod hentaimoon;
pub mod missav;
pub mod xxthots;
pub trait Provider {
async fn get_videos(
@@ -50,6 +51,7 @@ pub enum AnyProvider {
Homoxxx(crate::providers::homoxxx::HomoxxxProvider),
Hentaimoon(crate::providers::hentaimoon::HentaimoonProvider),
Missav(crate::providers::missav::MissavProvider),
Xxthots(crate::providers::xxthots::XxthotsProvider),
}
impl Provider for AnyProvider {
@@ -136,6 +138,10 @@ impl Provider for AnyProvider {
p.get_videos(cache, pool, sort, query, page, per_page, options,)
.await
}
AnyProvider::Xxthots(p) => {
p.get_videos(cache, pool, sort, query, page, per_page, options,)
.await
}
}
}
}