don't flood
authorFelix Domke <tmbinc@elitedvb.net>
Fri, 20 Jan 2006 22:46:53 +0000 (22:46 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Fri, 20 Jan 2006 22:46:53 +0000 (22:46 +0000)
RecordTimer.py

index 8f6999c91ead4ef4a00badc4ed5607b26a83338d..3802ac70c4ef8919771e5990883f628085dbb748 100644 (file)
@@ -168,9 +168,12 @@ class RecordTimerEntry(timer.TimerEntry):
                        self.log(14, "user didn't want to zap away, record will probably fail")
 
        def timeChanged(self):
                        self.log(14, "user didn't want to zap away, record will probably fail")
 
        def timeChanged(self):
+               old_prepare = self.start_prepare
                self.start_prepare = self.begin - self.prepare_time
                self.backoff = 0
                self.start_prepare = self.begin - self.prepare_time
                self.backoff = 0
-               self.log(15, "record time changed, start prepare is now: %s" % time.ctime(self.start_prepare))
+               
+               if old_prepare != self.start_prepare:
+                       self.log(15, "record time changed, start prepare is now: %s" % time.ctime(self.start_prepare))
 
 def createTimer(xml):
        begin = int(xml.getAttribute("begin"))
 
 def createTimer(xml):
        begin = int(xml.getAttribute("begin"))