I have this code from enigma2 that actually works perfectly but sometimes it fails when it comes to some channels that more time to display epg information in the screen, this results in no epg. So I want some help to re-execute the code after a while like 30 seconds. I tried poll-interval but to no success. Here is my code:
from Source import Source
class Event(Source, object):
def __init__(self):
Source.__init__(self)
self.evt = None
def getCurrentEvent(self):
return self.evt
event = property(getCurrentEvent)
def newEvent(self, event):
if not self.evt or self.evt != event:
self.evt = event
if not event:
self.changed((self.CHANGED_CLEAR,))
else:
self.changed((self.CHANGED_ALL,))