beralt / horepg

A simple translator between the Horizion JSON format and the XMLTV format
MIT License
10 stars 10 forks source link

Fix HorizonRequest ignoring a 404 status code #28

Closed jbogers closed 2 years ago

jbogers commented 2 years ago

On return of a 404 status code, the HorizonRequest class ignores the 404 status code and takes no action. This causes horepg to crash. To fix this, status code 404 is to be treated the same as code 403; the EPG is being hosted on the other server.

Fixes #27

hp197 commented 2 years ago

👍

beralt commented 2 years ago

Thanks. This makes sense. Unfortunately I no longer user horepg so I cannot test this.