Less viaplay more schedule

This commit is contained in:
Tom 2022-08-18 21:37:57 +02:00
parent 8ffea41db0
commit 4e5bfb1d23

View file

@ -108,11 +108,11 @@ async fn get_schedule() -> Option<MSReq> {
let result: Option<MSReq> = match req {
Err(e) => {
warn!("Error getting Viaplay schedule {}", e);
warn!("Error getting normal schedule {}", e);
None
}
Ok(req) if req.status().as_u16() == 404 => {
warn!("404 on getting VP events");
warn!("404 on getting schedule");
None
}
Ok(req) if req.status().as_u16() == 200 => {
@ -120,14 +120,14 @@ async fn get_schedule() -> Option<MSReq> {
match data {
Ok(d) => Some(d),
Err(e) => {
warn!("Error getting Viaplay schedule {}", e);
warn!("Error getting normal schedule {}", e);
None
}
}
}
Ok(req) => {
warn!(
"Unhandled status when parsing viaplay request {}",
"Unhandled status when parsing schedule request {}",
req.status()
);
None