f323ba1
use crate::parse::{EmbedRule, Platform};
use crate::Category;
pub struct Mixcloud;
impl Platform for Mixcloud {
fn id(&self) -> &'static str {
"mixcloud"
}
fn name(&self) -> &'static str {
"Mixcloud"
}
fn category(&self) -> Category {
Category::Music
}
fn domains(&self) -> &'static [&'static str] {
&["mixcloud.com"]
}
fn embed_rule(&self) -> Option<EmbedRule> {
Some(EmbedRule::frame("https://www.mixcloud.com/widget/iframe/?hide_cover=1&feed={url_enc}"))
}
}
pub static PLATFORM: Mixcloud = Mixcloud;