Closed Lunatixz closed 2 years ago
It's actually on purpose to not refresh at startup when it has been less then the configured interval ago. This is to not hammer the services behind the Add-ons when restarting Kodi. When the update interval has passed while Kodi was closed, it will update automatically as soon as Kodi is started.
I believe the onus is on the individual plugin to properly cache and handle data flow. IPTV manager's responsibility is to provide fresh data which it doesn't. The main issue IPTV manager has, is that it pools multiple sources with varying guide data lengths; yet updates them all at a set static time.
There is a major disconnect between fresh and stale data...
My hope is that we can make IPTV manager well-rounded and not just a niche one-off instance solution.
This commit has some lazy additions to get us started. Down the road, I'd like to add guide data checks, so that updates are run individually and dynamically when needed.
Added
reload
passive refresh switch and moved 'last_refreshed' state to a window property to assure IPTV manager refreshes meta at Kodi start.