getFrontendData is not working when the service is not started.. so call it
[enigma2.git] / lib / python / Components / TimerSanityCheck.py
index 43885522b08d073aa79514acbe88b579d386d062..f9176e7871fe1684f5d828798630661a0196ba15 100644 (file)
@@ -163,13 +163,13 @@ class TimerSanityCheck:
                                timer = self.timerlist[event[1]]
                        if event[2] == self.bflag:
                                fakeRecService = NavigationInstance.instance.recordService(timer.service_ref)
+                               fakeRecResult = fakeRecService.start(True)
                                feinfo = fakeRecService.frontendInfo().getFrontendData()
                                tunerType = feinfo.get("tuner_type")
                                tunerSlot = feinfo.get("tuner_number")
                                if event[1] == -1: # new timer
                                        newTimerTunerType = tunerType
                                        newTimerTunerSlot = tunerSlot
-                               fakeRecResult = fakeRecService.start(True)
                                overlaplist.append((fakeRecResult, timer, tunerType, tunerSlot))
                                fakeRecList.append((timer, fakeRecService))
                                if fakeRecResult:
@@ -177,7 +177,6 @@ class TimerSanityCheck:
                                                ConflictTimer = timer
                                                ConflictTunerType = tunerType
                                                ConflictSlot = tunerSlot
-                               del feinfo
                        elif event[2] == self.eflag:
                                for fakeRec in fakeRecList:
                                        if timer == fakeRec[0]:
@@ -191,9 +190,6 @@ class TimerSanityCheck:
                        self.nrep_eventlist[idx] = (event[0],event[1],event[2],cnt,overlaplist[:]) # insert a duplicate into current overlaplist
                        idx += 1
 
-               for fakeRec in fakeRecList:
-                       NavigationInstance.instance.stopRecordService(fakeRec[1])
-
                if ConflictTimer is None: # no conflict found :)
                        return True