X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/0dbb36049c5f14bbabc4596448dc148f108a2137..eee6103aa3a4b36d0ace8e33b56dd9bfa06bf1b7:/RecordTimer.py?ds=sidebyside diff --git a/RecordTimer.py b/RecordTimer.py index 27967629..1e21091d 100644 --- a/RecordTimer.py +++ b/RecordTimer.py @@ -257,7 +257,7 @@ class RecordTimerEntry(timer.TimerEntry): NavigationInstance.instance.stopRecordService(self.record_service) self.record_service = None if self.afterEvent == AFTEREVENT.STANDBY: - if not Screen.Standby.inStandby: # not already in standby + if not Screens.Standby.inStandby: # not already in standby Notifications.AddNotificationWithCallback(self.sendStandbyNotification, MessageBox, _("A finished record timer wants to set your\nDreambox to standby. Do that now?"), timeout = 20) if self.afterEvent == AFTEREVENT.DEEPSTANDBY: if not Screens.Standby.inTryQuitMainloop: # not a shutdown messagebox is open @@ -437,6 +437,17 @@ class RecordTimer(timer.Timer): file.write(x) file.close() + def getNextRecordingTime(self): + llen = len(self.timer_list) + idx = 0 + while idx < llen: + timer = self.timer_list[idx] + if timer.justplay: + idx += 1 + else: + return timer.begin + return -1 + def record(self, entry): entry.timeChanged() print "[Timer] Record " + str(entry)