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 dispatchRecordEvent(self, rec_service, event):
# print "record_event", rec_service, event
def dispatchRecordEvent(self, rec_service, event):
# print "record_event", rec_service, event
def playService(self, ref, checkParentalControl = True):
oldref = self.currentlyPlayingServiceReference
def playService(self, ref, checkParentalControl = True):
oldref = self.currentlyPlayingServiceReference
- if not checkParentalControl or parentalControl.isServicePlayable(ref.toCompareString(), boundFunction(self.playService, checkParentalControl = False)):
+ if not checkParentalControl or parentalControl.isServicePlayable(ref, boundFunction(self.playService, checkParentalControl = False)):
if ref.flags & eServiceReference.isGroup:
if not oldref:
oldref = eServiceReference()
playref = getBestPlayableServiceReference(ref, oldref)
if ref.flags & eServiceReference.isGroup:
if not oldref:
oldref = eServiceReference()
playref = getBestPlayableServiceReference(ref, oldref)
- if not playref or (checkParentalControl and not parentalControl.isServicePlayable(playref.toCompareString(), boundFunction(self.playService, checkParentalControl = False))):
+ if not playref or (checkParentalControl and not parentalControl.isServicePlayable(playref, boundFunction(self.playService, checkParentalControl = False))):
- 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