follow api changes
[enigma2.git] / lib / python / Components / EventInfo.py
index 36a5aa4d55285d6d5f1f8a01be61b231898049f7..de16a1737fcf75a470284a03811eaf671cdda9f0 100644 (file)
@@ -13,13 +13,13 @@ class EventInfo(PerServiceDisplay):
        Next_StartTime = 5
        
        def __init__(self, navcore, now_or_next):
-               # listen to evUpdatedEventInfo and evStopService
-               # note that evStopService will be called once to establish a known state
+               # listen to evUpdatedEventInfo and evEnd
+               # note that evEnd will be called once to establish a known state
                self.now_or_next = now_or_next
                PerServiceDisplay.__init__(self, navcore, 
                        { 
-                               pNavigation.evUpdatedEventInfo: self.ourEvent, 
-                               pNavigation.evStopService: self.stopEvent 
+                               iPlayableService.evUpdatedEventInfo: self.ourEvent, 
+                               iPlayableService.evEnd: self.stopEvent 
                        })
 
        def ourEvent(self):
@@ -53,8 +53,8 @@ class EventInfoProgress(PerServiceDisplayProgress, EventInfo):
                self.now_or_next = now_or_next
                PerServiceDisplayProgress.__init__(self, navcore, 
                        { 
-                               pNavigation.evUpdatedEventInfo: self.ourEvent, 
-                               pNavigation.evStopService: self.stopEvent 
+                               iPlayableService.evUpdatedEventInfo: self.ourEvent, 
+                               iPlayableService.evEnd: self.stopEvent 
                        })
 
        def update(self, ev):