コード例 #1
0
ファイル: RecordTimer.py プロジェクト: Huevos/enigma2
	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
コード例 #2
0
ファイル: RecordTimer.py プロジェクト: sek1973/openpliPC
 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
コード例 #3
0
	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
コード例 #4
0
ファイル: RecordTimer.py プロジェクト: idrogeno/IdroMips
	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
コード例 #5
0
ファイル: RecordTimer.py プロジェクト: aitchala/enigma2
	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
コード例 #6
0
ファイル: RecordTimer.py プロジェクト: TELE-TWIN/stbgui
 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
コード例 #7
0
ファイル: RecordTimer.py プロジェクト: TELE-TWIN/stbgui
 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
コード例 #8
0
ファイル: RecordTimer.py プロジェクト: ybagci/enigma2
	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
コード例 #9
0
ファイル: RecordTimer.py プロジェクト: takitr/enigma2
	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