server: add another The Onion slurp config

This commit is contained in:
Bill Thiede 2025-01-27 14:14:46 -08:00
parent f6665b6b6e
commit 198db1492a

View File

@ -238,6 +238,8 @@ pub async fn thread(
Selector::parse("div.p").unwrap(), Selector::parse("div.p").unwrap(),
], ],
"theonion.com".to_string() => vec![ "theonion.com".to_string() => vec![
// Single image joke w/ title
Selector::parse("article > section > div > figure").unwrap(),
// Single cartoon // Single cartoon
Selector::parse("article > div > div > figure").unwrap(), Selector::parse("article > div > div > figure").unwrap(),
// Image at top of article // Image at top of article