f323ba1
//! 站点不允许内嵌,渲染成带平台标识的卡片。
use crate::parse::{EmbedRule, Platform};
use crate::Category;
pub struct Cctv;
impl Platform for Cctv {
fn id(&self) -> &'static str {
"cctv"
}
fn name(&self) -> &'static str {
"央视网"
}
fn category(&self) -> Category {
Category::News
}
fn domains(&self) -> &'static [&'static str] {
&["cctv.com", "cntv.cn", "cctv.cn", "yangshipin.cn"]
}
fn embed_rule(&self) -> Option<EmbedRule> {
None
}
}
pub static PLATFORM: Cctv = Cctv;