self.log(3, "prepare ok, writing meta information to %s" % self.Filename)
try:
f = open(self.Filename + ".ts.meta", "w")
self.log(3, "prepare ok, writing meta information to %s" % self.Filename)
try:
f = open(self.Filename + ".ts.meta", "w")
@@ -152,11+158,12 @@ class RecordTimerEntry(timer.TimerEntry):
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
- if config.recording.asktozap.value == 0:
+ if not config.recording.asktozap.value:
self.log(8, "asking user to zap away")
self.log(8, "asking user to zap away")
- 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_INFO, timeout=20)
self.failureCB(True)
self.do_backoff()
self.failureCB(True)
self.do_backoff()
@@ -225,7+232,7 @@ class RecordTimerEntry(timer.TimerEntry):