Closed jankammerath closed 6 years ago
That should be easily doable by fixing the following line: https://github.com/jankammerath/iptvx/blob/27b9af649ba2e72c32cd11e38951d13a1172c06d/src/epg.c#L505
Additionally the following line should be changed as well: https://github.com/jankammerath/iptvx/blob/27b9af649ba2e72c32cd11e38951d13a1172c06d/src/epg.c#L541
The code can be amended to look like (true/false respectively) which will substract 18.000 seconds (equals 5 hours) to ensure that the previous 5 hours and therewith the previous day at midnight are taken into account as well:
iptvx_epg_load_channel(current,time(NULL)-18000,false);
EPG pulls up until 3am might result in issues that there is no current programme as the schedule was defined in an XMLTV for the previous day. Solution should be to grab the previous day's EPG until 5am in the morning.