From: Moritz Venn Date: Wed, 2 Jul 2008 17:09:45 +0000 (+0000) Subject: update recorddict when adding new timers to improve detection of repeats via avoidDup... X-Git-Url: http://code.vuplus.com/gitweb/?a=commitdiff_plain;h=c6429d3eb2d4c23acdea759d8bfad1d2062d2f79;p=vuplus_dvbapp-plugin update recorddict when adding new timers to improve detection of repeats via avoidDuplicateDescription --- diff --git a/autotimer/src/AutoTimer.py b/autotimer/src/AutoTimer.py index 44a52f2..3f83cc2 100644 --- a/autotimer/src/AutoTimer.py +++ b/autotimer/src/AutoTimer.py @@ -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))