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 {
|
let result: Option<MSReq> = match req {
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
warn!("Error getting Viaplay schedule {}", e);
|
warn!("Error getting normal schedule {}", e);
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
Ok(req) if req.status().as_u16() == 404 => {
|
Ok(req) if req.status().as_u16() == 404 => {
|
||||||
warn!("404 on getting VP events");
|
warn!("404 on getting schedule");
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
Ok(req) if req.status().as_u16() == 200 => {
|
Ok(req) if req.status().as_u16() == 200 => {
|
||||||
|
@ -120,14 +120,14 @@ async fn get_schedule() -> Option<MSReq> {
|
||||||
match data {
|
match data {
|
||||||
Ok(d) => Some(d),
|
Ok(d) => Some(d),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
warn!("Error getting Viaplay schedule {}", e);
|
warn!("Error getting normal schedule {}", e);
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(req) => {
|
Ok(req) => {
|
||||||
warn!(
|
warn!(
|
||||||
"Unhandled status when parsing viaplay request {}",
|
"Unhandled status when parsing schedule request {}",
|
||||||
req.status()
|
req.status()
|
||||||
);
|
);
|
||||||
None
|
None
|
||||||
|
|
Loading…
Reference in a new issue