omgxxx bugfix

This commit is contained in:
Simon
2025-10-07 19:53:08 +00:00
parent 8a9baa1552
commit 12af9a89cd
5 changed files with 419 additions and 22 deletions

View File

@@ -6,7 +6,6 @@ use std::sync::Arc;
use crate::{
DbPool,
api::ClientVersion,
providers::omgxxx::OmgxxxProvider,
status::Channel,
util::cache::VideoCache,
videos::{ServerOptions, VideoItem},
@@ -36,13 +35,15 @@ pub mod omgxxx;
pub mod paradisehill;
pub mod pornzog;
pub mod youjizz;
pub mod beeg;
// convenient alias
pub type DynProvider = Arc<dyn Provider>;
pub static ALL_PROVIDERS: Lazy<HashMap<&'static str, DynProvider>> = Lazy::new(|| {
let mut m = HashMap::default();
m.insert("omgxxx", Arc::new(OmgxxxProvider::new()) as DynProvider);
m.insert("omgxxx", Arc::new(omgxxx::OmgxxxProvider::new()) as DynProvider);
m.insert("beeg", Arc::new(beeg::BeegProvider::new()) as DynProvider);
// add more here as you migrate them
m
});