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
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)