Project

General

Profile

Feature #5686

Allow keeping up to a specified amount of epg data

Added by Michaël Arnauts about 2 years ago. Updated 9 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-07-15
Due date:
% Done:

0%

Estimated time:

Description

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).

History

#1

Updated by saen acro about 2 years 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.

#2

Updated by Michaël Arnauts about 2 years 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?

#3

Updated by saen acro about 2 years ago

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

#4

Updated by Michaël Arnauts about 2 years ago

This would mean a big change in the tvheadend integration in kodi (https://github.com/kodi-pvr/pvr.hts) 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 https://github.com/michaelarnauts/context.pvr.justmissed), so exporting the epg every few hours doesn't help here.

This is the change I'm proposing: https://github.com/tvheadend/tvheadend/compare/master...michaelarnauts:epgkeep

#5

Updated by Michaël Arnauts about 2 years 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 :(

#6

Updated by saen acro about 2 years ago

install Ministra portal there is all you need to store epg to database
https://wiki.infomir.eu/eng/ministra-tv-platform
https://github.com/1187/stalker_portal

#7

Updated by Em Smith about 2 years 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.

#8

Updated by Sami Markkanen 11 months ago

I've been developing a Python-based HTTP server providing a mobile-friendly TV guide for Tvheadend (with some optional Kodi integration like switching channels and notifying about favorites). Accessing old EPG data would be very useful, as my guide tries to be helpful with all the reruns by letting users browse past episodes from last 2 weeks (by default) to easily see which ones were recorded or missed.

Right now my software works around this by cloning all EPG data (including asynchronous changes) to another database, which is troublesome, to say the least. I'm not sure if my project will ever be polished enough for a public release, but access to old data sure would help simplifying things and ironing out glitches.

#9

Updated by Michaël Arnauts 11 months ago

I've made a patch a while ago for TVHeadend to keep 7 days of EPG data.

You can find it here: https://github.com/michaelarnauts/context.pvr.justmissed#tvheadend

#10

Updated by Sami Markkanen 9 months ago

Thanks, Michael. That's a good start, so I'll start testing with a patched version. Hardcoding is a bad habit, of course, so ultimately the timespan should be configurable, perhaps even through the API.

Have you noticed any side effects running with the patch?

#11

Updated by Michaël Arnauts 9 months ago

The web UI would also display the past programs, making the EPG view a bit confusing. Other then that, I don't think it causes any issues.

Also available in: Atom PDF