aboutsummaryrefslogtreecommitdiff
path: root/Navigation.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-12-21 08:44:31 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-12-21 08:44:31 +0000
commit7b46919af63cfcb6adbe72d8d4183a203dfcfce7 (patch)
treea120978cd5fe72e8a5a232ef1f903e449edb5a3e /Navigation.py
parent35ae469a718067d1c71e6c5f99b48e4d3702a1c3 (diff)
downloadenigma2-7b46919af63cfcb6adbe72d8d4183a203dfcfce7.tar.gz
enigma2-7b46919af63cfcb6adbe72d8d4183a203dfcfce7.zip
zap to last channel with 0
(could someone check, if this has no side effects now? the root isn't set right after 0-zap... please fix... i have no idea how this can be done)
Diffstat (limited to 'Navigation.py')
-rw-r--r--Navigation.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Navigation.py b/Navigation.py
index 751aca89..d8a98b12 100644
--- a/Navigation.py
+++ b/Navigation.py
@@ -21,6 +21,7 @@ class Navigation:
self.event = [ ]
self.currentlyPlayingService = None
self.currentlyPlayingServiceReference = None
+ self.lastServiceRef = None
self.RecordTimer = RecordTimer.RecordTimer()
@@ -29,6 +30,7 @@ class Navigation:
x(i)
def playService(self, ref):
+ self.lastServiceRef = self.currentlyPlayingServiceReference
self.currentlyPlayingServiceReference = None
if ref is None:
self.stopService()
@@ -39,6 +41,9 @@ class Navigation:
return 0
return 1
+ def zapLast(self):
+ return self.playService(self.lastServiceRef)
+
def getCurrentlyPlayingServiceReference(self):
return self.currentlyPlayingServiceReference