-from enigma import eServiceCenter, eServiceReference, pNavigation
+from enigma import eServiceCenter, eServiceReference, pNavigation, getBestPlayableServiceReference
self.RecordTimer = RecordTimer.RecordTimer()
self.SleepTimer = SleepTimer.SleepTimer()
def dispatchEvent(self, i):
self.RecordTimer = RecordTimer.RecordTimer()
self.SleepTimer = SleepTimer.SleepTimer()
def dispatchEvent(self, i):
def playService(self, ref, checkParentalControl = True):
oldref = self.currentlyPlayingServiceReference
def playService(self, ref, checkParentalControl = True):
oldref = self.currentlyPlayingServiceReference
print "playing", ref and ref.toString()
self.currentlyPlayingServiceReference = None
self.currentlyPlayingService = None
print "playing", ref and ref.toString()
self.currentlyPlayingServiceReference = None
self.currentlyPlayingService = None
- if self.state:
- if not self.currentlyPlayingService:
- self.currentlyPlayingService = self.pnav and self.pnav.getCurrentService()
- return self.currentlyPlayingService
- return None
+ if not self.currentlyPlayingService:
+ self.currentlyPlayingService = self.pnav and self.pnav.getCurrentService()
+ return self.currentlyPlayingService