main
use crate::parse::{EmbedRule, Platform};
use crate::Category;
pub struct Acfun;
impl Platform for Acfun {
fn id(&self) -> &'static str {
"acfun"
}
fn name(&self) -> &'static str {
"AcFun"
}
fn category(&self) -> Category {
Category::Video
}
fn domains(&self) -> &'static [&'static str] {
&["acfun.cn"]
}
fn embed_rule(&self) -> Option<EmbedRule> {
Some(EmbedRule::wide(r"^/v/ac(\d+)", "https://www.acfun.cn/player/ac{id}"))
}
}
pub static PLATFORM: Acfun = Acfun;