EPG is not loading deterministically

Hi,

I have a addon that configures pvr.iptvsimple addon to load m3u and epg. I can see all the channels in TV section but corresponding epg data is missing. Can you help me how to load the EPG data deterministically?

I can see following in kodi debug logs:

2023-12-16 08:04:42.500 T:1376     info <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadPlayList Playlist Loaded - 736 (ms)
2023-12-16 08:04:42.500 T:1376     info <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadPlayList - Loaded 1032 channels.
2023-12-16 08:04:42.500 T:1376     info <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadPlayList - Loaded 27 channel groups.
2023-12-16 08:04:42.500 T:1376     info <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadPlayList - Loaded 0 providers.
2023-12-16 08:04:42.500 T:1376     info <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadPlayList - Loaded 0 media items.
2023-12-16 08:04:42.500 T:1376    debug <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadEPG - EPG Load Start
2023-12-16 08:04:42.844 T:1339    debug <CWebserver[80]>: request received for /jsonrpc
2023-12-16 08:04:44.455 T:1376    error <general>: Skipped 3 duplicate messages..
2023-12-16 08:04:44.455 T:1376    error <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadChannelEpgs - EPG channels not found.

Can this be related to the issue?

Might be an idea to ask the provider

I was able to get the EPG to show by clearing the TV cache.

Settings → TV & Radio → General → Clear data → All. Do I need to setup a cron to do this once a day?

As a side effect of “Clear data” it requests the EPG data again. Can someone point me to the source code (or provide a snippet to run with python) so that I can automate only the required part (say once a day)?

Do you just need to change the interval…
https://kodi.wiki/view/Advancedsettings.xml#epg

If that doesn’t work maybe you can use JSON-RPC to stop and start your PVR or invoke that reset…
https://forum.kodi.tv/showthread.php?tid=310084

Otherwise maybe you can use kodi-send to push the actions via bash

I went through the pvr.iptvsimple documentation where it says:

After adding and selecting new config files you will need to clear the EPG cache Settings->PVR & Live TV->Guide->Clear cache for it to take effect in the case of EPG relatd config and for channel related config will need to clear the full cache Settings->PVR & Live TV->General->Clear cache.

It seems I need to do it only once after updating the EPG url.

Thanks for the help.