aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-11-30 01:45:56 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-11-30 01:45:56 +0000
commitf7ff39ec6af77dce898ddb24aa30e75df569dbd2 (patch)
treed8b0c307da88a3ffb97e2c617b48014e42c980a9
parentbf603aaeef3e12783075c7559b30038e91e68667 (diff)
downloadenigma2-f7ff39ec6af77dce898ddb24aa30e75df569dbd2.tar.gz
enigma2-f7ff39ec6af77dce898ddb24aa30e75df569dbd2.zip
don't save description. retry starting ..
-rw-r--r--RecordTimer.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/RecordTimer.py b/RecordTimer.py
index 4724876a..5e441d41 100644
--- a/RecordTimer.py
+++ b/RecordTimer.py
@@ -30,6 +30,7 @@ class RecordTimerEntry(timer.TimerEntry):
self.description = description
self.timer = None
self.record_service = None
+ self.wantStart = False
def calculateFilename(self):
service_name = self.service_ref.getServiceName()
@@ -80,16 +81,15 @@ class RecordTimerEntry(timer.TimerEntry):
else:
# error.
Notifications.AddNotificationWithCallback(self.failureCB, MessageBox, _("A timer failed to record!\nDisable TV and try again?\n"))
- elif self.record_service == None:
- if event != self.EventAbort:
- print "timer record start failed, can't finish recording."
elif event == self.EventStart:
if self.prepareOK:
self.record_service.start()
print "timer started!"
else:
print "prepare failed, thus start failed, too."
+ self.wantStart = True
elif event == self.EventEnd or event == self.EventAbort:
+ self.wantStart = False
if self.prepareOK:
self.record_service.stop()
self.record_service = None
@@ -105,6 +105,9 @@ class RecordTimerEntry(timer.TimerEntry):
if answer == True:
NavigationInstance.instance.stopUserServices()
self.activate(self.EventPrepare)
+ if self.wantStart:
+ print "post-activating record"
+ self.activate(self.EventStart)
else:
print "user killed record"
@@ -165,7 +168,7 @@ class RecordTimer(timer.Timer):
t.setAttribute("serviceref", str(timer.service_ref))
t.setAttribute("repeated", str(timer.repeated))
#t.setAttribute("epgdata", timer.)
- t.setAttribute("description", timer.description)
+ t.setAttribute("description", "no description") # timer.description)
root_element.appendChild(t)
t = doc.createTextNode("\n")
root_element.appendChild(t)