add some timer checks
[enigma2.git] / Navigation.py
index a0f40ba..7b615bb 100644 (file)
@@ -4,6 +4,8 @@ import RecordTimer
 import NavigationInstance
 import ServiceReference
 
+from time import time
+
 # TODO: remove pNavgation, eNavigation and rewrite this stuff in python.
 class Navigation:
        def __init__(self):
@@ -30,7 +32,7 @@ class Navigation:
                        x(i)
 
        def playService(self, ref):
-               print "playing", ref.toString()
+               print "playing", ref and ref.toString()
                self.currentlyPlayingServiceReference = None
                self.currentlyPlayingService = None
                if ref is None:
@@ -65,6 +67,7 @@ class Navigation:
                return None
 
        def stopService(self):
+               print "stopService"
                if self.pnav:
                        self.pnav.stopService()
                self.currentlyPlayingService = None