2020-03-29, 14:45
Hello,
There is an issue that I have had for a long time, maybe 2 years, maybe forever (5+ years). EPG seemingly does not update when there is a change in EPG data on backend.
Here is my issue, it is the same as mentioned here 3 years ago, seemingly never resolved/answered: https://forum.kodi.tv/showthread.php?tid=298162
I am now using Kodi 18.2 / LibreELEC but same exact thing was occurring with Kodi 16.1. On reboot or power on or hitting "Clear Data" in the above settings, EPG will update. I have it set for 7 days (that is the amount of days my Tvheadend backend downloads every day at around 04:00 in the morning). Update interval is set for 120 minutes but it does not matter what setting is there. Also I have tried "cache / don't cache" and "prevent updates / don't prevent updates", behavior is the same.
What I mean by EPG does not update is this. Often we will use the EPG window to schedule a recording and errors message will pop up, "Could not save the timer. Check the log for more information about this message." Every time this message pops up, I know the real problem is that the program I want to record has shifted in the last EPG update on my backend. I check the backend and program might have changed by 5 minutes or whatever. As soon as I go to "Clear Data" for Guide in Settings, the EPG is re-loaded and the correct time is shown in EPG and I can successfully schedule the recording.
This happens at least once a day. So it seems EPG is not re-loaded by Kodi. So I found one program where this happened today and I checked EPG database (EPG12.db). For this program there were TWO entries in the EPG12.db. One had the old starting time (incorrect) and the other had the new starting time (correct). Ending time was the same. They had different idBroadcast and iBroadcastUid.
What does this mean? It is obvious that the latest EPG was copied from backend because I can see the program with updated start time. But both programs are there and the one that is older is being shown. If I "Clear Data" or if I reboot then the updated program shows up. Finally, it just so happens that today is the daylight savings time and clock has changed. Same issue exists for daylight savings time. Meaning, EPG was showing all programs shifted by 1 hour (old time) and only after I hit "Clear Data" did the time shift, even though Kodi itself properly updated its time.
Is this a bug or intended behavior? How can I fix this? Currently I am thinking of setting up a cronjob to "Clear Data" every morning after backend downloads latest EPG. However this should not be the fix, I believe the EPG should simply be updated with latest information when update is initiated.
There is an issue that I have had for a long time, maybe 2 years, maybe forever (5+ years). EPG seemingly does not update when there is a change in EPG data on backend.
Here is my issue, it is the same as mentioned here 3 years ago, seemingly never resolved/answered: https://forum.kodi.tv/showthread.php?tid=298162
I am now using Kodi 18.2 / LibreELEC but same exact thing was occurring with Kodi 16.1. On reboot or power on or hitting "Clear Data" in the above settings, EPG will update. I have it set for 7 days (that is the amount of days my Tvheadend backend downloads every day at around 04:00 in the morning). Update interval is set for 120 minutes but it does not matter what setting is there. Also I have tried "cache / don't cache" and "prevent updates / don't prevent updates", behavior is the same.
What I mean by EPG does not update is this. Often we will use the EPG window to schedule a recording and errors message will pop up, "Could not save the timer. Check the log for more information about this message." Every time this message pops up, I know the real problem is that the program I want to record has shifted in the last EPG update on my backend. I check the backend and program might have changed by 5 minutes or whatever. As soon as I go to "Clear Data" for Guide in Settings, the EPG is re-loaded and the correct time is shown in EPG and I can successfully schedule the recording.
This happens at least once a day. So it seems EPG is not re-loaded by Kodi. So I found one program where this happened today and I checked EPG database (EPG12.db). For this program there were TWO entries in the EPG12.db. One had the old starting time (incorrect) and the other had the new starting time (correct). Ending time was the same. They had different idBroadcast and iBroadcastUid.
What does this mean? It is obvious that the latest EPG was copied from backend because I can see the program with updated start time. But both programs are there and the one that is older is being shown. If I "Clear Data" or if I reboot then the updated program shows up. Finally, it just so happens that today is the daylight savings time and clock has changed. Same issue exists for daylight savings time. Meaning, EPG was showing all programs shifted by 1 hour (old time) and only after I hit "Clear Data" did the time shift, even though Kodi itself properly updated its time.
Is this a bug or intended behavior? How can I fix this? Currently I am thinking of setting up a cronjob to "Clear Data" every morning after backend downloads latest EPG. However this should not be the fix, I believe the EPG should simply be updated with latest information when update is initiated.