Feature #5686

Allow keeping up to a specified amount of epg data

Added by Michaël Arnauts 11 months ago. Updated 11 months ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


Currently, it seems that old epg data is removed. It would be usefull to keep old data for up to a specified amount of days (like 7 days for example).

This old data can be used to search for recently aired programs online (and this works really nice when integrated with Kodi addons for example that do just that).



Updated by saen acro 11 months ago

It's useless when there is no live event from past ;)
If some one make timeshift option usefully for this case it can be done.


Updated by Michaël Arnauts 11 months ago

It's not as useless as you might think. I use Kodi as a the client for tvheadend, and I can use the guide to play old programs from an add-on associated with the channel.

This makes it really easy to play old programs that aren't recorded in tvheadend, but are available online.

Looking at the code, the change seems really simple. Would this be accepted as a pull request?


Updated by saen acro 11 months ago

Export epg end save for this add-on's
Same thing do Ministra portal


Updated by Michaël Arnauts 11 months ago

This would mean a big change in the tvheadend integration in kodi ( since this uses the tvheadend api to provide guide data to kodi.

I use the kodi pvr guide to play recent broadcasts (with the help of a contextmenu, see, so exporting the epg every few hours doesn't help here.

This is the change I'm proposing:


Updated by Michaël Arnauts 11 months ago

Hmm, never mind, I took a closer look at the source and it seems tvheadend quite extensive depends on the first item to be the current airing item :(


Updated by saen acro 11 months ago

install Ministra portal there is all you need to store epg to database


Updated by Em Smith 11 months ago

On Kodi settings for PVR & LiveTV, go to expert settings, then go to Guide and increase "Past Days to Display". Then Kodi will keep the previous days in the tv guide, up to.a maximum of 31 days.

Note: This is Kodi settings, not Kodi pvr.hts settings or Tvheadend settings.

Also available in: Atom PDF