-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):
- 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