-2

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,))
4

1 回答 1

0

尝试“清除缓存”插件,因为有时您需要的只是更多缓存,特别是如果您有 dm800

于 2016-08-01T12:50:12.157 回答