git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CI mmi is now working every time (for support alphacrypt parental control or other...
[enigma2.git]
/
Navigation.py
diff --git
a/Navigation.py
b/Navigation.py
index 57c128390316df09a1c5daf899496e574fd2ffab..8ff1be0cc3d7327f94817b53b434fb836c9f44a5 100644
(file)
--- a/
Navigation.py
+++ b/
Navigation.py
@@
-11,19
+11,16
@@
class Navigation:
raise NavigationInstance.instance
NavigationInstance.instance = self
raise NavigationInstance.instance
NavigationInstance.instance = self
- self.ServiceHandler = eServiceCenterPtr()
- eServiceCenter.getInstance(self.ServiceHandler)
+ self.ServiceHandler = eServiceCenter.getInstance()
import Navigation as Nav
Nav.navcore = self
import Navigation as Nav
Nav.navcore = self
- print "Navcore instance set!"
- print Nav.navcore
-
self.pnav = pNavigation()
self.pnav.m_event.get().append(self.callEvent)
self.event = [ ]
self.currentlyPlayingService = None
self.pnav = pNavigation()
self.pnav.m_event.get().append(self.callEvent)
self.event = [ ]
self.currentlyPlayingService = None
+ self.currentlyPlayingServiceReference = None
self.RecordTimer = RecordTimer.RecordTimer()
self.RecordTimer = RecordTimer.RecordTimer()
@@
-32,7
+29,12
@@
class Navigation:
x(i)
def playService(self, ref):
x(i)
def playService(self, ref):
+ print "playing", ref
self.currentlyPlayingServiceReference = None
self.currentlyPlayingServiceReference = None
+ if ref is None:
+ self.stopService()
+ return 0
+
if not self.pnav.playService(ref):
self.currentlyPlayingServiceReference = ref
return 0
if not self.pnav.playService(ref):
self.currentlyPlayingServiceReference = ref
return 0
@@
-45,38
+47,38
@@
class Navigation:
print "recording service: %s" % (str(ref))
if isinstance(ref, ServiceReference.ServiceReference):
ref = ref.ref
print "recording service: %s" % (str(ref))
if isinstance(ref, ServiceReference.ServiceReference):
ref = ref.ref
- service = iRecordableServicePtr()
- if self.pnav.recordService(ref, service):
+ service = self.pnav.recordService(ref)
+
+ if service is None:
print "record returned non-zero"
return None
else:
print "record returned non-zero"
return None
else:
- print "ok, recordService didn't fail"
return service
return service
- def enqueueService(self, ref):
- return self.pnav.enqueueService(ref)
-
def getCurrentService(self):
def getCurrentService(self):
- service = iPlayableServicePtr()
- if self.pnav.getCurrentService(service):
+ service = self.pnav.getCurrentService()
+
+ if service is None:
return None
return None
+
return service
return service
- def getPlaylist(self):
- playlist = ePlaylistPtr()
- if self.pnav.getPlaylist(playlist):
- return None
- return playlist
+ def stopService(self):
+ self.pnav.stopService()
def pause(self, p):
return self.pnav.pause(p)
def pause(self, p):
return self.pnav.pause(p)
- def recordWithTimer(self,
begin, end, ref, epg
):
+ def recordWithTimer(self,
ref, begin, end, name, description, eit
):
if isinstance(ref, eServiceReference):
ref = ServiceReference.ServiceReference(ref)
if isinstance(ref, eServiceReference):
ref = ServiceReference.ServiceReference(ref)
- entry = RecordTimer.RecordTimerEntry(
begin, end, ref, epg
)
+ entry = RecordTimer.RecordTimerEntry(
ref, begin, end, name, description, eit
)
self.RecordTimer.record(entry)
return entry
def shutdown(self):
self.RecordTimer.shutdown()
self.RecordTimer.record(entry)
return entry
def shutdown(self):
self.RecordTimer.shutdown()
+ del self.pnav
+
+ def stopUserServices(self):
+ self.stopService()