use crate::parse::{EmbedRule, Platform}; use crate::Category; pub struct Dailymotion; impl Platform for Dailymotion { fn id(&self) -> &'static str { "dailymotion" } fn name(&self) -> &'static str { "Dailymotion" } fn category(&self) -> Category { Category::Video } fn domains(&self) -> &'static [&'static str] { &["dailymotion.com", "dai.ly"] } fn embed_rule(&self) -> Option { Some(EmbedRule::wide("^/video/([A-Za-z0-9]+)", "https://www.dailymotion.com/embed/video/{id}")) } } pub static PLATFORM: Dailymotion = Dailymotion;