switch to morgenjournal again
This commit is contained in:
10
src/lib.rs
10
src/lib.rs
@@ -16,11 +16,11 @@ async fn get_newest_morning_journal() -> Result<String, Box<dyn std::error::Erro
|
||||
for day in days.iter().rev() {
|
||||
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"
|
||||
&& let Some(href) = broadcast["href"].as_str() {
|
||||
return Ok(href.into());
|
||||
}
|
||||
if broadcast["title"] == "Ö1 Morgenjournal"
|
||||
&& let Some(href) = broadcast["href"].as_str()
|
||||
{
|
||||
return Ok(href.into());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user