diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-10-02 23:59:22 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-10-02 23:59:22 +0000 |
| commit | 19e535d1d17e94e001d47f718c0304386b6309c8 (patch) | |
| tree | 7bd48b4097e8deb461b186cc0da7b57ce0c955dd /RecordTimer.py | |
| parent | a4507d9c7dde86f36ccb5718e89d41f29be83446 (diff) | |
| download | enigma2-19e535d1d17e94e001d47f718c0304386b6309c8.tar.gz enigma2-19e535d1d17e94e001d47f718c0304386b6309c8.zip | |
fix non-ascii chars in service reference, follow new config stuff
Diffstat (limited to 'RecordTimer.py')
| -rw-r--r-- | RecordTimer.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/RecordTimer.py b/RecordTimer.py index da629ee7..d8312493 100644 --- a/RecordTimer.py +++ b/RecordTimer.py @@ -31,8 +31,8 @@ def parseEvent(ev): begin = ev.getBeginTime() end = begin + ev.getDuration() eit = ev.getEventId() - 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: @@ -158,7 +158,7 @@ class RecordTimerEntry(timer.TimerEntry): 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") Notifications.AddNotificationWithCallback(self.failureCB, MessageBox, _("A timer failed to record!\nDisable TV and try again?\n"), timeout=20) else: # zap without asking @@ -232,7 +232,7 @@ class RecordTimerEntry(timer.TimerEntry): def createTimer(xml): begin = int(xml.getAttribute("begin")) end = int(xml.getAttribute("end")) - serviceref = ServiceReference(str(xml.getAttribute("serviceref"))) + serviceref = ServiceReference(xml.getAttribute("serviceref").encode("utf-8")) description = xml.getAttribute("description").encode("utf-8") repeated = xml.getAttribute("repeated").encode("utf-8") disabled = long(xml.getAttribute("disabled") or "0") |
