def getNextRecordingTimeOld(self): now = time() for timer in self.timer_list: next_act = timer.getNextActivation() if timer.justplay or next_act < now: continue return next_act return -1
def getNextRecordingTime(self): now = time() for timer in self.timer_list: next_act = timer.getNextActivation() if timer.justplay or next_act < now: continue return next_act return -1
def getNextTimerTime(self, isWakeup=False): now = time() for timer in self.timer_list: next_act = timer.getNextActivation() if next_act < now or isWakeup and timer.justplay and timer.zap_wakeup in ("from_standby", "never"): continue return next_act return -1
def getNextRecordingTime(self): now = time() for timer in self.timer_list: next_act = timer.getNextActivation() if timer.disabled or timer.justplay or next_act < now or timer.state >= timer.StateRunning: continue return next_act return -1
def getNextTimerTime(self): now = time() for timer in self.timer_list: next_act = timer.getNextActivation() if next_act < now: continue return next_act return -1
def getNextRecordingTimeOld(self, getNextStbPowerOn = False): now = time() if getNextStbPowerOn: save_act = -1 for timer in self.timer_list: next_act = timer.getNextActivation(getNextStbPowerOn) if timer.justplay or next_act < now: continue if debug: print "[recordtimer] next stb power up", strftime("%a, %Y/%m/%d %H:%M", localtime(next_act)) if save_act == -1: save_act = next_act else: if next_act < save_act: save_act = next_act return save_act else: for timer in self.timer_list: next_act = timer.getNextActivation() if timer.justplay or next_act < now: continue return next_act return -1