Skip to content
Clone
2f5d35e
31 lines 612 B Rust
use crate::parse::{EmbedRule, Platform};
use crate::Category;
pub struct Rumble;
impl Platform for Rumble {
fn id(&self) -> &'static str {
"rumble"
}
fn name(&self) -> &'static str {
"Rumble"
}
fn category(&self) -> Category {
Category::Video
}
fn domains(&self) -> &'static [&'static str] {
&["rumble.com"]
}
fn embed_rule(&self) -> Option<EmbedRule> {
None
}
fn oembed(&self) -> Option<&'static str> {
Some("https://rumble.com/api/Media/oembed.json?url={url_enc}")
}
}
pub static PLATFORM: Rumble = Rumble;