Less viaplay more schedule
This commit is contained in:
parent
8ffea41db0
commit
4e5bfb1d23
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue