Jump to content


Photo

Single EPG-old epg data

patch

  • Please log in to reply
27 replies to this topic

#1 Dimitrij

  • PLi® Core member
  • 9,969 posts

+335
Excellent

Posted 2 March 2013 - 14:16

Single EPG old epg data in list.
Patch (basic idea VTI image).
One problem, setting GME...
--- a/EpgList.py
+++ b/EpgList.py
@@ -8,6 +8,7 @@
from Tools.LoadPixmap import LoadPixmap

from time import localtime, time
+from Components.config import config
from ServiceReference import ServiceReference
from Tools.Directories import resolveFilename, SCOPE_CURRENT_SKIN

@@ -257,11 +258,18 @@
   self.selectionChanged()

  def fillSingleEPG(self, service):
-  #t = time()
-  test = [ 'RIBDT', (service.ref.toString(), 0, -1, -1) ]
+  t = time()
+  epg_time = t - config.epg.histminutes.getValue()*60
+  test = [ 'RIBDT', (service.ref.toString(), 0, epg_time, -1) ]
   self.list = self.queryEPG(test)
   self.l.setList(self.list)
-  #print time() - t
+  if t != epg_time:
+   idx = 0
+   for x in self.list:
+	idx += 1
+	if t < x[2]+x[3]:
+	 break
+   self.instance.moveSelectionTo(idx-1)
   self.selectionChanged()

  def sortSingleEPG(self, type):
--- a/UsageConfig.py
+++ b/UsageConfig.py
@@ -203,7 +203,7 @@
  config.epg.viasat.addNotifier(EpgSettingsChanged)
  config.epg.netmed.addNotifier(EpgSettingsChanged)

- config.epg.histminutes = ConfigSelectionNumber(min = 0, max = 120, stepwidth = 15, default = 0, wraparound = True)
+ config.epg.histminutes = ConfigSelectionNumber(min = 0, max = 720, stepwidth = 30, default = 0, wraparound = True)
  def EpgHistorySecondsChanged(configElement):
   from enigma import eEPGCache
   eEPGCache.getInstance().setEpgHistorySeconds(config.epg.histminutes.getValue()*60)

Edited by Dima73, 2 March 2013 - 14:17.

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Single EPG-old epg data #2 Dimitrij

  • PLi® Core member
  • 9,969 posts

+335
Excellent

Posted 3 March 2013 - 08:48

Appeal to users.
Is it not interesting???
It is very comfortable, I personally would always keep this feature.
Support patch.

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Single EPG-old epg data #3 BuGless

  • Senior Member
  • 539 posts

+16
Neutral

Posted 3 March 2013 - 16:31

Appeal to users.
Is it not interesting???


The trouble here is, that you do not provide a comprehensible description of what it is that you're trying to fix, and what you did in your fix.

Re: Single EPG-old epg data #4 Dimitrij

  • PLi® Core member
  • 9,969 posts

+335
Excellent

Posted 3 March 2013 - 16:53


Appeal to users.
Is it not interesting???


The trouble here is, that you do not provide a comprehensible description of what it is that you're trying to fix, and what you did in your fix.


I really do not know much English.
Look at the screenshot.
I specifically pointed out the current time and position of the cursor event.
I am also very hard to understand you, especially in German and Dutch, but I'm not complaining.

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Single EPG-old epg data #5 BuGless

  • Senior Member
  • 539 posts

+16
Neutral

Posted 4 March 2013 - 14:52

I really do not know much English.

I'd suggest you practice English by reading magazines/books/articles in English.

I am also very hard to understand you, especially in German and Dutch, but I'm not complaining.

Seems like you *are* complaining, but that is ok :-).
In what way am I difficult to understand? Am I more difficult to understand than others?
What language (besides Russian) are you best at?

Re: Single EPG-old epg data #6 Dimitrij

  • PLi® Core member
  • 9,969 posts

+335
Excellent

Posted 4 March 2013 - 15:19

Let's not argue, I may be wrong, and down to business.
This patch is for a single EPG.
The opportunity to see past events up to 12 hours.
This is very useful if you missed something.

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Single EPG-old epg data #7 BuGless

  • Senior Member
  • 539 posts

+16
Neutral

Posted 4 March 2013 - 16:29

One problem, setting GME...

Which problem are you referring to?

Let's not argue, I may be wrong, and down to business.

Well, I was not saying you were wrong at all, I'm merely trying to determine in what way I can improve my communications.

This patch is for a single EPG.
The opportunity to see past events up to 12 hours.

Sounds useful, indeed.

Edited by BuGless, 4 March 2013 - 16:31.


Re: Single EPG-old epg data #8 Dimitrij

  • PLi® Core member
  • 9,969 posts

+335
Excellent

Posted 4 March 2013 - 17:31

Which problem are you referring to?

GraphMultiEpg.py ...
now = time() - config.epg.histminutes.getValue() * 60
class GraphMultiEPG(Screen, HelpableScreen):
EMPTY = 0
ADD_TIMER = 1
REMOVE_TIMER = 2

ZAP = 1
def __init__(self, session, services, zapFunc=None, bouquetChangeCB=None, bouquetname=""):
  Screen.__init__(self, session)
  self.bouquetChangeCB = bouquetChangeCB
  now = time() - config.epg.histminutes.getValue() * 60
  self.ask_time = now - now % int(config.misc.graph_mepg.roundTo.getValue())
  self["key_red"] = Button("")
  self["key_green"] = Button("")

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Single EPG-old epg data #9 Gi 9995 Owner

  • Senior Member
  • 116 posts

+1
Neutral

Posted 4 March 2013 - 17:40

Appeal to users.
Is it not interesting?

It is very interesting !
Many thanks !

VU+ Ultimo   Eutelsat W4 at 36.0°E


Re: Single EPG-old epg data #10 hemertje

  • Forum Moderator
    PLi® Core member
  • 33,470 posts

+118
Excellent

Posted 4 March 2013 - 21:59

Let's not argue, I may be wrong, and down to business.
This patch is for a single EPG.
The opportunity to see past events up to 12 hours.
This is very useful if you missed something.


why do you want so see programs from the past you missed?

on the Glassfibre 1GB DVB-C...


Re: Single EPG-old epg data #11 Dimitrij

  • PLi® Core member
  • 9,969 posts

+335
Excellent

Posted 4 March 2013 - 22:29

why do you want so see programs from the past you missed?

Sports broadcasts.
If I missed them, you can find similar broadcasts reruns and put a timer.

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Single EPG-old epg data #12 hemertje

  • Forum Moderator
    PLi® Core member
  • 33,470 posts

+118
Excellent

Posted 4 March 2013 - 22:32

if you missed them the programs / matches are not good enough that you did not set a timer before ;)

on the Glassfibre 1GB DVB-C...


Re: Single EPG-old epg data #13 Dimitrij

  • PLi® Core member
  • 9,969 posts

+335
Excellent

Posted 4 March 2013 - 22:38

if you missed them the programs / matches are not good enough that you did not set a timer before ;)

find similar,e.g. EPGSearch

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Single EPG-old epg data #14 Gi 9995 Owner

  • Senior Member
  • 116 posts

+1
Neutral

Posted 8 March 2013 - 22:56

hemertje, please, implement this feature in the image. We really need it!

VU+ Ultimo   Eutelsat W4 at 36.0°E


Re: Single EPG-old epg data #15 Dimitrij

  • PLi® Core member
  • 9,969 posts

+335
Excellent

Posted 17 March 2013 - 11:26

Attempt number two...

1)Single EPG - old epg data in list.
2)Multi EPG - add remaining and duration in list(see screenshots)
--- a/EpgList.py
+++ b/EpgList.py
@@ -8,6 +8,7 @@
from Tools.LoadPixmap import LoadPixmap

from time import localtime, time
+from Components.config import config
from ServiceReference import ServiceReference
from Tools.Directories import resolveFilename, SCOPE_CURRENT_SKIN

@@ -209,17 +210,21 @@
	if nowTime < beginTime:
	 begin = localtime(beginTime)
	 end = localtime(beginTime+duration)
-#	print "begin", begin
-#	print "end", end
	 res.extend((
	  (eListboxPythonMultiContent.TYPE_TEXT, r4.x, r4.y, r4.w, r4.h, 1, RT_HALIGN_CENTER|RT_VALIGN_CENTER, "%02d.%02d - %02d.%02d"%(begin[3],begin[4],end[3],end[4])),
-	 (eListboxPythonMultiContent.TYPE_TEXT, r3.x, r3.y, r3.w, r3.h, 0, RT_HALIGN_LEFT, EventName)
+	 (eListboxPythonMultiContent.TYPE_TEXT, r3.x, r3.y, 80, r3.h, 1, RT_HALIGN_RIGHT|RT_VALIGN_CENTER, _("%d min") % (duration / 60)),
+	 (eListboxPythonMultiContent.TYPE_TEXT, r3.x + 90, r3.y, r3.w, r3.h, 0, RT_HALIGN_LEFT, EventName)
	 ))
	else:
	 percent = (nowTime - beginTime) * 100 / duration
+	prefix = "+"
+	remaining = ((beginTime+duration) - int(time())) / 60
+	if remaining <= 0:
+	 prefix = ""
	 res.extend((
	  (eListboxPythonMultiContent.TYPE_PROGRESS, r2.x, r2.y, r2.w, r2.h, percent),
-	 (eListboxPythonMultiContent.TYPE_TEXT, r3.x, r3.y, r3.w, r3.h, 0, RT_HALIGN_LEFT, EventName)
+	 (eListboxPythonMultiContent.TYPE_TEXT, r3.x, r3.y, 80, r3.h, 1, RT_HALIGN_RIGHT|RT_VALIGN_CENTER, _("%s%d min") % (prefix, remaining)),
+	 (eListboxPythonMultiContent.TYPE_TEXT, r3.x + 90, r3.y, r3.w, r3.h, 0, RT_HALIGN_LEFT, EventName)
	 ))
   return res

@@ -257,11 +262,18 @@
   self.selectionChanged()

  def fillSingleEPG(self, service):
-  #t = time()
-  test = [ 'RIBDT', (service.ref.toString(), 0, -1, -1) ]
+  t = time()
+  epg_time = t - config.epg.histminutes.getValue()*60
+  test = [ 'RIBDT', (service.ref.toString(), 0, epg_time, -1) ]
   self.list = self.queryEPG(test)
   self.l.setList(self.list)
-  #print time() - t
+  if t != epg_time:
+   idx = 0
+   for x in self.list:
+	idx += 1
+	if t < x[2]+x[3]:
+	 break
+   self.instance.moveSelectionTo(idx-1)
   self.selectionChanged()

  def sortSingleEPG(self, type):

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Single EPG-old epg data #16 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 19 March 2013 - 19:53

Dima73 thank you !!!

Attached Files


BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: Single EPG-old epg data #17 Gi 9995 Owner

  • Senior Member
  • 116 posts

+1
Neutral

Posted 19 March 2013 - 21:34

I also want!
When this feature will be implemented in the software?
WHEN ??? !!!

VU+ Ultimo   Eutelsat W4 at 36.0°E


Re: Single EPG-old epg data #18 Dimitrij

  • PLi® Core member
  • 9,969 posts

+335
Excellent

Posted 20 March 2013 - 06:46

I also want!
When this feature will be implemented in the software?
WHEN ??? !!!

Thank littlesat
http://sourceforge.n...e973523e015016/
EPG settings->Maintain old EPG data for
up to two hours

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: Single EPG-old epg data #19 aam13

  • Member
  • 1 posts

0
Neutral

Posted 20 March 2013 - 11:05

I consider that this feature is very useful! It MUST BE...!

Re: Single EPG-old epg data #20 ims

  • PLi® Core member
  • 13,609 posts

+211
Excellent

Posted 20 March 2013 - 12:22

I hope, this durations will be in MEPG only or will be possible enable/disable it ;)
Kdo nic nedělá, nic nezkazí!



Also tagged with one or more of these keywords: patch

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users