- begin -= config.recording.margin_before.value[0] * 60
- end += config.recording.margin_after.value[0] * 60
+ begin -= config.recording.margin_before.value * 60
+ end += config.recording.margin_after.value * 60
return (begin, end, name, description, eit)
class AFTEREVENT:
return (begin, end, name, description, eit)
class AFTEREVENT:
self.log(7, "prepare failed")
if self.first_try_prepare:
self.first_try_prepare = False
self.log(7, "prepare failed")
if self.first_try_prepare:
self.first_try_prepare = False
- Notifications.AddNotificationWithCallback(self.failureCB, MessageBox, _("A timer failed to record!\nDisable TV and try again?\n"))
+ Notifications.AddNotificationWithCallback(self.failureCB, MessageBox, _("A timer failed to record!\nDisable TV and try again?\n"), timeout=20)
else: # zap without asking
self.log(9, "zap without asking")
else: # zap without asking
self.log(9, "zap without asking")
- Notifications.AddNotification(MessageBox, _("In order to record a timer, the TV was switched to the recording service!\n"), type=MessageBox.TYPE_WARNING)
+ Notifications.AddNotification(MessageBox, _("In order to record a timer, the TV was switched to the recording service!\n"), type=MessageBox.TYPE_INFO, timeout=20)
description = xml.getAttribute("description").encode("utf-8")
repeated = xml.getAttribute("repeated").encode("utf-8")
disabled = long(xml.getAttribute("disabled") or "0")
description = xml.getAttribute("description").encode("utf-8")
repeated = xml.getAttribute("repeated").encode("utf-8")
disabled = long(xml.getAttribute("disabled") or "0")