diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-07-14 16:59:54 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-07-14 16:59:54 +0000 |
| commit | 2bfebc394420e75a517ac012bb7b5d6ec2c03049 (patch) | |
| tree | 6ef16ec99ce4370a8eeea6c487ebc790027fa971 /lib/python/Components/Sources/EventInfo.py | |
| parent | 4d8312e21da3ddf84395fa7557ba6e13fede4145 (diff) | |
| download | enigma2-2bfebc394420e75a517ac012bb7b5d6ec2c03049.tar.gz enigma2-2bfebc394420e75a517ac012bb7b5d6ec2c03049.zip | |
fix EventInfo to pull on query
Diffstat (limited to 'lib/python/Components/Sources/EventInfo.py')
| -rw-r--r-- | lib/python/Components/Sources/EventInfo.py | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/python/Components/Sources/EventInfo.py b/lib/python/Components/Sources/EventInfo.py index fc420d83..0925684c 100644 --- a/lib/python/Components/Sources/EventInfo.py +++ b/lib/python/Components/Sources/EventInfo.py @@ -3,7 +3,7 @@ from Tools.Event import Event from enigma import iPlayableService from Source import Source -class EventInfo(PerServiceBase, Source): +class EventInfo(PerServiceBase, Source, object): NOW = 0 NEXT = 1 @@ -11,19 +11,15 @@ class EventInfo(PerServiceBase, Source): Source.__init__(self) PerServiceBase.__init__(self, navcore, { - iPlayableService.evUpdatedEventInfo: self.ourEvent, - iPlayableService.evEnd: self.stopEvent + iPlayableService.evUpdatedEventInfo: self.changed, + iPlayableService.evEnd: self.changed }) - self.event = None self.now_or_next = now_or_next - def ourEvent(self): + def getEvent(self): service = self.navcore.getCurrentService() info = service and service.info() - self.event = info and info.getEvent(self.now_or_next) - self.changed() + return info and info.getEvent(self.now_or_next) - def stopEvent(self): - self.event = None - self.changed() + event = property(getEvent) |
