Kodi Community Forum

Full Version: Why EPG database?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Was wondering since I started developing PVR addon. Why keep EPG in database? Wouldn't it be faster and much easier to let addon keep their data all the time and request it on demand?

Especially since this database is useless now since it erases whole data and fetches from backend anyway on startup what takes ages and if backend doesn't have EPG data yet there will bo no entries in database.

Anyway, what is the method of push EPG update from addon towards Kodi?

Regards
Piotr
1) the biggest benefit of using the database is that Kodi can display past items in the timeline (most backends don't provide any past guide data). The database shouldn't be erased on startup, is that really what you're seeing?

2) currently it's not possible to "push" an update to Kodi, you have to tell Kodi to update the EPG for the entire channel. This is a but clumsy but it's designed with addons that can't push anything in mind (which is most of them, only some of them use a bi-directional communication channel).
1) OK there is an option to disable database storage, it is much better now.

2) Thanks for pointing this.
Also consider the scenario that a user could be using two different/multiple PVR clients in Kodi at the same time.

The user could example have a Tvheadend backend, and a WMC backend, and use a IPTV Simple Client.

Kodi needs to have one central location to consolidate all the EPG data from those different/multiple PVR clients.