X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/4cc1f7a05166715c19c965e3bbbe74a43835a754..5acb8fc9d204c63e0da84142c570c5ca41424cae:/RecordTimer.py diff --git a/RecordTimer.py b/RecordTimer.py index f1f4e14b..37aecdbd 100644 --- a/RecordTimer.py +++ b/RecordTimer.py @@ -3,6 +3,7 @@ import codecs #from time import datetime from Tools import Directories, Notifications +from Components.config import config import timer import xml.dom.minidom @@ -85,7 +86,10 @@ class RecordTimerEntry(timer.TimerEntry): self.prepareOK = True else: # error. - Notifications.AddNotificationWithCallback(self.failureCB, MessageBox, _("A timer failed to record!\nDisable TV and try again?\n")) + if config.recording.asktozap.value == 0: + Notifications.AddNotificationWithCallback(self.failureCB, MessageBox, _("A timer failed to record!\nDisable TV and try again?\n")) + else: # zap without asking + self.failureCB(True) elif event == self.EventStart: if self.prepareOK: self.record_service.start() @@ -98,6 +102,7 @@ class RecordTimerEntry(timer.TimerEntry): if self.prepareOK: self.record_service.stop() self.record_service = None + print "Timer successfully ended" else: print "prepare failed, thus nothing was recorded." @@ -108,8 +113,11 @@ class RecordTimerEntry(timer.TimerEntry): def failureCB(self, answer): if answer == True: - NavigationInstance.instance.stopUserServices() + #NavigationInstance.instance.stopUserServices() + print "[RecordTimer] zapping to", self.service_ref + NavigationInstance.instance.playService(self.service_ref.ref) self.activate(self.EventPrepare) + if self.wantStart: print "post-activating record" self.activate(self.EventStart)