f323ba1
use crate::parse::{EmbedRule, Platform};
use crate::Category;
pub struct Qqvideo;
impl Platform for Qqvideo {
fn id(&self) -> &'static str {
"qqvideo"
}
fn name(&self) -> &'static str {
"腾讯视频"
}
fn category(&self) -> Category {
Category::Video
}
fn domains(&self) -> &'static [&'static str] {
&["v.qq.com", "film.qq.com"]
}
fn embed_rule(&self) -> Option<EmbedRule> {
Some(EmbedRule::wide(r"^/x/(?:page|cover/[^/]+)/([A-Za-z0-9]+)\.html", "https://v.qq.com/txp/iframe/player.html?vid={id}"))
}
}
pub static PLATFORM: Qqvideo = Qqvideo;