+ ret = info and info.getEvent(self.now_or_next)
+ if not ret and info:
+ refstr = info.getInfoString(iServiceInformation.sServiceref)
+ ret = self.epgQuery(eServiceReference(refstr), -1, self.now_or_next and 1 or 0)
+ return ret
+
+ event = property(getEvent)
+
+ def gotEvent(self, what):
+ if what == iPlayableService.evEnd:
+ self.changed((self.CHANGED_CLEAR,))
+ else:
+ self.changed((self.CHANGED_ALL,))
+
+ def destroy(self):
+ PerServiceBase.destroy(self)
+ Source.destroy(self)