Posts: 12
Joined: Dec 2018
Reputation:
0
lama18
Junior Member
Posts: 12
### Describe the feature
EPG update runs every 5 minutes , despite the setting (defaulted with 120 min). Getting guide for many channels is an high cost operation for the backend and can get more than 5 minutes to retrieve the range of data. Is the reason of the setting and its default value (120 min).
## Expected Behavior
When you realize that one EPG file can have, for example, 10 MB, it will be downloaded for 250+ days, which is 2.5 GB + completely unnecessary.
In this case, a check would be sufficient, for example, once a day / at startup / if the data ends.
## Actual Behavior
An EPG update bumps the backend every 5 min.
## Possible Fix
Check only once a day / at startup / if the data ends / maybe just respect the settings in PVR
Posts: 1,885
Joined: Jan 2015
Reputation:
126
ksooo
Team-Kodi Developer
Posts: 1,885
> EPG update runs every 5 minutes , despite the setting (defaulted with 120 min).
This is not quite correct.
It runs every 120 min (adjustable GUI setting) for every channel that already has EPG data and it tries to obtain initial EPG data for channels not yet having EPG data every 5 min (advanced setting).
Not saying that this cannot be improved, just want to make clear how it actually works.
Posts: 1,885
Joined: Jan 2015
Reputation:
126
ksooo
Team-Kodi Developer
Posts: 1,885
2019-02-05, 18:14
(This post was last modified: 2019-02-05, 18:14 by ksooo.)
Well, I think I know Kodi pvr code pretty well and it behaves like I said.
Posts: 1,016
Joined: Sep 2012
Reputation:
55
janbar
Posting Freak
Posts: 1,016
Hi, really the kodi behavior is useless. As I said it shouldn't retry to load nothing or try only once time to solve an EIT delay.
In my case this behavior bumps the backend database every 5 minutes and let me pay an electric bill for nails, because always you find at least one channel without epg data.
Posts: 1,885
Joined: Jan 2015
Reputation:
126
ksooo
Team-Kodi Developer
Posts: 1,885
> Yesterday's statistics, absolutely unnecessary downloads of the XMLTV fil
Please stop that ranting! We all meanwhile get tht the iptvsimple addon is causing this, driven by a epg configuration that is, well not optimal and a epg caching algorithm of that addon, that is, well, not optimal.
Posts: 1,885
Joined: Jan 2015
Reputation:
126
ksooo
Team-Kodi Developer
Posts: 1,885
Just a quick thought: Maybe all this comes down to just increasing the default value of the advanced setting 'updateemptytagsinterval' to let's say 120 mins (matching the default value of the GUI setting "epg update interval") - at least as a "quick fix" for v18. The only pitfall of this solution would be, that if GUI setting "epg update interval" value is increased by the user to some value greater than 120 mins, the check for channels without EPG will still be done every 120 mins (as long as user does not also increase advanced setting 'updateemptytagsinterval' value.)
How does this sound?
Posts: 12
Joined: Dec 2018
Reputation:
0
lama18
Junior Member
Posts: 12
I still think the best solution (and the most logical) would be for Kodi to respect the option "update interval" of the GUI for data download for PVR.
Posts: 12
Joined: Dec 2018
Reputation:
0
lama18
Junior Member
Posts: 12
*120 minutes is not quite ideal, but definitely better than 5 minutes.