diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-21 08:44:31 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-21 08:44:31 +0000 |
| commit | 7b46919af63cfcb6adbe72d8d4183a203dfcfce7 (patch) | |
| tree | a120978cd5fe72e8a5a232ef1f903e449edb5a3e /Navigation.py | |
| parent | 35ae469a718067d1c71e6c5f99b48e4d3702a1c3 (diff) | |
| download | enigma2-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.py | 5 |
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 |
