projects
/
vuplus_dvbapp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zap to last channel with 0
[vuplus_dvbapp]
/
Navigation.py
diff --git
a/Navigation.py
b/Navigation.py
index
751aca8
..
d8a98b1
100644
(file)
--- a/
Navigation.py
+++ b/
Navigation.py
@@
-21,6
+21,7
@@
class Navigation:
self.event = [ ]
self.currentlyPlayingService = None
self.currentlyPlayingServiceReference = None
self.event = [ ]
self.currentlyPlayingService = None
self.currentlyPlayingServiceReference = None
+ self.lastServiceRef = None
self.RecordTimer = RecordTimer.RecordTimer()
self.RecordTimer = RecordTimer.RecordTimer()
@@
-29,6
+30,7
@@
class Navigation:
x(i)
def playService(self, ref):
x(i)
def playService(self, ref):
+ self.lastServiceRef = self.currentlyPlayingServiceReference
self.currentlyPlayingServiceReference = None
if ref is None:
self.stopService()
self.currentlyPlayingServiceReference = None
if ref is None:
self.stopService()
@@
-39,6
+41,9
@@
class Navigation:
return 0
return 1
return 0
return 1
+ def zapLast(self):
+ return self.playService(self.lastServiceRef)
+
def getCurrentlyPlayingServiceReference(self):
return self.currentlyPlayingServiceReference
def getCurrentlyPlayingServiceReference(self):
return self.currentlyPlayingServiceReference