rule34gen

This commit is contained in:
Simon
2025-11-09 14:18:52 +00:00
parent 4d2470e028
commit 2d719ad2d7
2 changed files with 291 additions and 5 deletions

View File

@@ -4,11 +4,7 @@ use rustc_hash::FxHashMap as HashMap;
use std::sync::Arc;
use crate::{
DbPool,
api::ClientVersion,
status::Channel,
util::cache::VideoCache,
videos::{ServerOptions, VideoItem},
DbPool, api::ClientVersion, status::Channel, util::cache::VideoCache, videos::{ServerOptions, VideoItem}
};
pub mod all;
@@ -38,6 +34,7 @@ pub mod youjizz;
pub mod beeg;
pub mod tnaflix;
pub mod pornxp;
pub mod rule34gen;
// convenient alias
pub type DynProvider = Arc<dyn Provider>;
@@ -48,6 +45,7 @@ pub static ALL_PROVIDERS: Lazy<HashMap<&'static str, DynProvider>> = Lazy::new(|
m.insert("beeg", Arc::new(beeg::BeegProvider::new()) as DynProvider);
m.insert("tnaflix", Arc::new(tnaflix::TnaflixProvider::new()) as DynProvider);
m.insert("pornxp", Arc::new(pornxp::PornxpProvider::new()) as DynProvider);
m.insert("rule34gen", Arc::new(rule34gen::Rule34genProvider::new()) as DynProvider);
// add more here as you migrate them
m
});