add some timer checks
[enigma2.git] / Navigation.py
index a0f40baf4e032c305ba06836e7f77d31e7e23f63..7b615bbdab6d37b6cb076ba1b11e92222f0c9a54 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