fix isInTimer for non-repeated timers
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 3 Mar 2006 15:29:23 +0000 (15:29 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 3 Mar 2006 15:29:23 +0000 (15:29 +0000)
RecordTimer.py

index faec534..a2f21df 100644 (file)
@@ -342,7 +342,7 @@ class RecordTimer(timer.Timer):
                                                                time_match = ((timecmp + ((x.end - x.begin) / 60)) - chktimecmp) * 60
                                                        elif chktimecmp <= timecmp < (chktimecmp + (duration / 60)):
                                                                time_match = ((chktimecmp + (duration / 60)) - timecmp) * 60
                                                                time_match = ((timecmp + ((x.end - x.begin) / 60)) - chktimecmp) * 60
                                                        elif chktimecmp <= timecmp < (chktimecmp + (duration / 60)):
                                                                time_match = ((chktimecmp + (duration / 60)) - timecmp) * 60
-                               elif x.eit is None:
+                               else: #if x.eit is None:
                                        end = begin + duration
                                        if begin <= x.begin <= end:
                                                diff = end - x.begin
                                        end = begin + duration
                                        if begin <= x.begin <= end:
                                                diff = end - x.begin