auto-call downloader every day
Some checks failed
CI/CD Pipeline / deploy (push) Has been cancelled
CI/CD Pipeline / test (push) Has been cancelled

This commit is contained in:
2025-08-12 20:40:57 +02:00
parent 3d252a2604
commit b21863298b
5 changed files with 74 additions and 7 deletions

View File

@@ -17,11 +17,10 @@ async fn get_newest_morning_journal() -> Result<String, Box<dyn std::error::Erro
if let Some(broadcasts) = day["broadcasts"].as_array() {
for broadcast in broadcasts.iter().rev() {
//if broadcast["title"] == "Ö1 Morgenjournal" {
if broadcast["title"] == "Eröffnungskonzert Allegro Vivo" {
if let Some(href) = broadcast["href"].as_str() {
if broadcast["title"] == "Eröffnungskonzert Allegro Vivo"
&& let Some(href) = broadcast["href"].as_str() {
return Ok(href.into());
}
}
}
}
}