follow core event changes
[enigma2.git] / lib / python / Components / ServicePosition.py
index e402751ce2d6598af59784a91ab93c6c24cbdfd8..4992e8e7f4f8185ad25146f4d28f0088de92ab5c 100644 (file)
@@ -2,7 +2,7 @@ from PerServiceDisplay import *
 from enigma import eTimer
 
 
-from enigma import pNavigation, iSeekableServicePtr
+from enigma import iPlayableService, iSeekableServicePtr
 
 class ServicePosition(PerServiceDisplay):
        TYPE_LENGTH = 0,
@@ -14,8 +14,8 @@ class ServicePosition(PerServiceDisplay):
                self.updateTimer.timeout.get().append(self.update)
                PerServiceDisplay.__init__(self, navcore,
                        {
-                               pNavigation.evNewService: self.newService,
-                               pNavigation.evStopService: self.stopEvent
+                               iPlayableService.evStart: self.newService,
+                               iPlayableService.evEnd: self.stopEvent
                        })
                self.type = type
 #              self.setType(type)
@@ -33,7 +33,7 @@ class ServicePosition(PerServiceDisplay):
                self.available = 0
                
                if service != None:
-                       seek = service.seek(seek)
+                       seek = service.seek()
                        if seek != None:
                                if self.type != self.TYPE_LENGTH:
                                        self.updateTimer.start(500)
@@ -47,7 +47,7 @@ class ServicePosition(PerServiceDisplay):
                service = self.navcore.getCurrentService()
                
                if service != None:
-                       seek = service.seek(seek)
+                       seek = service.seek()
                        if seek != None:
                                if what == self.TYPE_LENGTH:
                                        r = seek.getLength()