use crate::parse::{EmbedRule, Platform}; use crate::Category; pub struct Douyu; impl Platform for Douyu { fn id(&self) -> &'static str { "douyu" } fn name(&self) -> &'static str { "斗鱼" } fn category(&self) -> Category { Category::Live } fn domains(&self) -> &'static [&'static str] { &["douyu.com"] } fn embed_rule(&self) -> Option { None } } pub static PLATFORM: Douyu = Douyu;