bertbert72 / HomeAssistant_VirginTivo

HomeAssistant component for control of Virgin Media Tivo boxes
GNU General Public License v3.0
27 stars 22 forks source link

Guide cache not working as expected #42

Closed bertbert72 closed 4 years ago

bertbert72 commented 4 years ago

When a channel has a lot of short programmes, often early morning children's programmes, the guide will either not display the current programme or will need to refresh almost immediately.

This is because the cache starts 6 hours before the current time but the API used will only return a maximum of 25 entries. The reason for asking for the previous 6 hours was to prevent a problem with overnight programs that run on for a long time stopping the current program display working.

bertbert72 commented 4 years ago

Resolution will be to change the call to the API to use the end time rather than start time. This should resolve the overnight problem, plus mean that we don't have to cache a lot of previous programme data.