aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/TimerList.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Components/TimerList.py b/lib/python/Components/TimerList.py
index 47c49d3f..d79187d1 100644
--- a/lib/python/Components/TimerList.py
+++ b/lib/python/Components/TimerList.py
@@ -31,7 +31,7 @@ def TimerEntryComponent(timer, processed):
repeatedtext = ""
days = [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" ]
- if (timer.repeated != 0):
+ if not timer.repeated:
flags = timer.repeated
count = 0
for x in range(0, 7):
@@ -46,9 +46,9 @@ def TimerEntryComponent(timer, processed):
res.append((eListboxPythonMultiContent.TYPE_TEXT, 0, 50, 300, 20, 1, RT_HALIGN_LEFT|RT_VALIGN_CENTER, repeatedtext + ("%s, %s ... %s" % (FuzzyTime(timer.begin) + FuzzyTime(timer.end)[1:]))))
if not processed:
- if timer.state == TimerEntry.StateWait:
+ if timer.state == TimerEntry.StateWaiting:
state = "waiting"
- elif timer.state == TimerEntry.StatePrepare:
+ elif timer.state == TimerEntry.StatePrepared:
state = "about to start"
elif timer.state == TimerEntry.StateRunning:
state = "recording..."