don't add timers that are based on epg data, which are older than 14 days
[enigma2.git] / lib / python / Screens / EpgSelection.py
index 3dbba0fd6b162b4e619b25af7dc1cc41bae7d132..ffbea9a024118fe064c748ca83f387ac3c11f7b9 100644 (file)
@@ -14,7 +14,7 @@ from TimerEdit import TimerEditList
 from TimerEntry import TimerEntry
 from ServiceReference import ServiceReference
 from Components.config import config, currentConfigSelectionElement
-from time import localtime
+from time import localtime, time
 
 import xml.dom.minidom
 
@@ -184,7 +184,7 @@ class EPGSelection(Screen):
                        serviceref = cur[1]
                if event is None:
                        return
-               newEntry = RecordTimerEntry(serviceref, *parseEvent(event))
+               newEntry = RecordTimerEntry(serviceref, checkOldTimers = True, *parseEvent(event))
                self.session.openWithCallback(self.timerEditFinished, TimerEntry, newEntry)
 
        def timerEditFinished(self, answer):