main
use crate::parse::{EmbedRule, Platform};
use crate::Category;
pub struct Applemusic;
impl Platform for Applemusic {
fn id(&self) -> &'static str {
"applemusic"
}
fn name(&self) -> &'static str {
"Apple Music"
}
fn category(&self) -> Category {
Category::Music
}
fn domains(&self) -> &'static [&'static str] {
&["music.apple.com"]
}
fn embed_rule(&self) -> Option<EmbedRule> {
Some(EmbedRule::frame("https://embed.music.apple.com{path}"))
}
}
pub static PLATFORM: Applemusic = Applemusic;