omgxxx bugfix
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user