beralt / horepg

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

Fix bug with 8 hour EPG limit and final changes to category mapping #16

Closed jbogers closed 5 years ago

jbogers commented 5 years ago

I noticed that for some channels there was no longer full EPG data (notably, Veronica/Disney XD). On investigation I found that the EPG service now limits replies to 8 hour windows. Thus we were missing about 16 hours a day of EPG data.

To fix this I made the download loop do blocks of 6 hours so we don't miss programs that fall just on the edge of that window (and because I like 4 better as a multiplier then 3 :) ).

Also included is some last cleanup of the category mapping (for now, Ziggo keeps inventing new categories it seems :( ).

LukasdeBoer commented 5 years ago

Wow, thanks, me and my dad have had this issue. Thanks a lot!

FYI: I built a new version of the docker version of this (luqq/horepg) based on your code and it seems to fix the issues. Thanks again.

beralt commented 5 years ago

This is great, thanks!