update recorddict when adding new timers to improve detection of repeats via avoidDup...
authorMoritz Venn <ritzmo@users.schwerkraft.elitedvb.net>
Wed, 2 Jul 2008 17:09:45 +0000 (17:09 +0000)
committerMoritz Venn <ritzmo@users.schwerkraft.elitedvb.net>
Wed, 2 Jul 2008 17:09:45 +0000 (17:09 +0000)
autotimer/src/AutoTimer.py

index 44a52f2..3f83cc2 100644 (file)
@@ -769,6 +769,11 @@ class AutoTimer:
                                        # Mark this entry as AutoTimer (only AutoTimers will have this Attribute set)
                                        newEntry.isAutoTimer = True
 
+                                       if not recorddict.has_key(serviceref):
+                                               recorddict[serviceref] = [newEntry]
+                                       else:
+                                               recorddict[serviceref].append(newEntry)
+
                                # Apply afterEvent
                                if timer.hasAfterEvent():
                                        afterEvent = timer.getAfterEventTimespan(localtime(end))