X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/4f17f88e3c8f08b73081d264e5ea734de3c66ace..32e4324b9b5e615a84885b9132505e4706ededfe:/lib/python/Components/EventInfo.py diff --git a/lib/python/Components/EventInfo.py b/lib/python/Components/EventInfo.py index 656fd279..c8e5a13f 100644 --- a/lib/python/Components/EventInfo.py +++ b/lib/python/Components/EventInfo.py @@ -23,14 +23,14 @@ class EventInfo(PerServiceDisplay): service = self.navcore.getCurrentService() if service != None: - if not service.info(info): - ev = eServiceEventPtr() - if info.getEvent(ev, self.now_or_next & 1) == 0: + info = service.info() + if info is not None: + ev = info.getEvent(self.now_or_next & 1) + if ev is not None: if self.now_or_next & 2: self.setText("%d min" % (ev.m_duration / 60)) else: self.setText(ev.m_event_name) - print "new event info in EventInfo! yeah!" def stopEvent(self): self.setText(