Jump to content


Photo

lib/dvb/epgcache


  • Please log in to reply
6 replies to this topic

#1 blinkosm

  • Senior Member
  • 144 posts

+1
Neutral

Posted 17 January 2018 - 10:57

i wonder if a i can build my own image and make some modification in the lib/dvd/epgcache  ,, i already build my environment as you can see in the image but i dont find lib/dvb/epgcache i'm just a beginner and i need some help i want to change the intervall update of epgcache i want to make 5 min instead of 60 min

 

 

#include <errno.h>
 
#include <lib/dvb/eit.h>
#include <lib/dvb/lowlevel/eit.h>
#include <lib/dvb/idvb.h>
#include <lib/dvb/demux.h>
#include <lib/dvb/dvbtime.h>
#include <lib/base/ebase.h>
#include <lib/base/thread.h>
#include <lib/base/message.h>
#include <lib/service/event.h>
 
#define CLEAN_INTERVAL 60000 // 1 min
#define UPDATE_INTERVAL 3600000 // 60 min  change to  define UPDATE_INTERVAL 60000 // 1 min for exemple
#define ZAP_DELAY 2000 // 2 sek
 i think this is very easy for the expert please help :huh: :huh:

Attached Files

  • Attached File  01.JPG   62.21KB   2 downloads


Re: lib/dvb/epgcache #2 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,737
Excellent

Posted 17 January 2018 - 11:03

Just make a patch on the code, and include that in a bbappend in your meta-local.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: lib/dvb/epgcache #3 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 17 January 2018 - 17:32

And don't send pms to everyone about it please ;)

Open Vision sources: https://github.com/OpenVisionE2


Re: lib/dvb/epgcache #4 blinkosm

  • Senior Member
  • 144 posts

+1
Neutral

Posted 17 January 2018 - 18:21

i'm just  a beginner can you please explain more ,,, it just simple to change the code of epgcache and rename it epggcache.patch and put it in meta or something else ???

 

the problem is there are many people in the forum from germany therefore they dont find this intresting beacuse the german channels load the epg of 7days as you can see in the images but when it come for exemple french or spanish only now and next so with the time the epgcache will be empty and you get to wait 60min

 

Attached Files

  • Attached File  02.jpg   370.64KB   1 downloads
  • Attached File  03.jpg   473.45KB   1 downloads
  • Attached File  05.jpg   337.41KB   1 downloads
  • Attached File  06.jpg   386.14KB   1 downloads


Re: lib/dvb/epgcache #5 WanWizard

  • PLi® Core member
  • 68,544 posts

+1,737
Excellent

Posted 17 January 2018 - 18:24

Now/Next is unrelated to EPG, they are stored seperately. If your provider doesn't provide EPG in an open format (which provider is this?), you can always import EPG data.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: lib/dvb/epgcache #6 blinkosm

  • Senior Member
  • 144 posts

+1
Neutral

Posted 17 January 2018 - 18:34

yes, i now i dont wanna the whole EPG because french and spanish channels and others dont provide i just wanna to reload the epg(now/next) when it's empty

it's was an option in old BP gemini 5.1 and the code was :

 

choices_min=[("900000", "15 " + _("Minutes")), ("1800000", "30 " + _("Minutes")), ("2700000", "45 " + _("Minutes")), ("3600000", "1 " + _("Hour")), ("5400000", "90 " + _("Minutes")), ("7200000", "2 " + _("Hours"))]



if self.epgcache is not None:
e = self.epgcache.myEPGInfo()
list.append(CONFIGSEPERATOR)
config.bp.epg_update = NoSave(BPConfigSelection(choices=choices_min, default=str(e[3])))
list.append(getConfigListEntry(_("Interval for updating"), config.bp.epg_update))

 

 

i know this is openpli not gemini it just an exemple



Re: lib/dvb/epgcache #7 blinkosm

  • Senior Member
  • 144 posts

+1
Neutral

Posted 17 January 2018 - 18:44

take a look  in this pictures and see the date ... in the infobar the now/next is available but in the Epg empty ... i'm not talking about now/next that's why i wanna make some change in the epgcache

 

 

[EPGC] start caching events(1515661589)
[eDVBLocalTimeHandler] Receiver time is 'Thu Jan 11 09:06:29 2018'
[eDVBLocalTimeHandler] Transponder time is 'Thu Jan 11 09:06:28 2018'
[eDVBLocalTimeHandler] diff is -1
[eDVBLocalTimeHandler] diff < 120 .. use Transponder Time
[eDVBLocalTimeHandler] update RTC
[eDVBLocalTimeHandler] time_difference is -1
[eDVBLocalTimeHandler] update Linux Time
[EPGC] start cleanloop
[EPGC] stop cleanloop
[EPGC] 103823 bytes for cache used
[eFileMonitor] 1 events queued
[eFileMonitor] File {/tmp/ecm.info} has been created
VIDEO_GET_EVENT - ok
VIDEO_GET_EVENT - ok
[EPGC] abort non avail schedule reading
[EPGC] abort non avail schedule other reading
[EPGC] abort non avail viasat reading
[EPGC] nownext finished(1515661596)
[EPGC] stop caching events(1515661596)
[EPGC] next update in 60 min
Starting Thread-3

Attached Files

  • Attached File  bn.jpg   226.03KB   1 downloads
  • Attached File  nn.jpg   363.86KB   1 downloads



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users