increase limits
[enigma2.git] / RecordTimer.py
index 27967629060ff52696f38250be9745f955371827..1e21091dbd8127b0d433b4916417c7d33053853e 100644 (file)
@@ -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)