git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
servicedvb: also delete .ap and .cuts file when deleting movie
[enigma2.git]
/
timer.py
diff --git
a/timer.py
b/timer.py
index c03eb1e78d3fae37087230733ff138cf03377f51..09f64e3f8abbe9e9ca890599f20bcd0b5f017070 100644
(file)
--- a/
timer.py
+++ b/
timer.py
@@
-163,7
+163,10
@@
class Timer:
def timeChanged(self, timer):
timer.timeChanged()
def timeChanged(self, timer):
timer.timeChanged()
- self.timer_list.remove(timer)
+ if timer.state == TimerEntry.StateEnded:
+ self.processed_timers.remove(timer)
+ else:
+ self.timer_list.remove(timer)
self.addTimerEntry(timer)
self.addTimerEntry(timer)
@@
-173,8
+176,7
@@
class Timer:
# when activating a timer which has already passed,
# simply abort the timer. don't run trough all the stages.
if w.shouldSkip():
# when activating a timer which has already passed,
# simply abort the timer. don't run trough all the stages.
if w.shouldSkip():
- w.abort()
- bisect.insort(self.processed_timers, w)
+ w.state = TimerEntry.StateEnded
else:
# when active returns true, this means "accepted".
# otherwise, the current state is kept.
else:
# when active returns true, this means "accepted".
# otherwise, the current state is kept.