From 24ec7ceb4ddd2749c60716f35f3f01ba0e2fcc13 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 21 Dec 2008 11:11:47 +0100 Subject: fix death screen in some conditions del fakeRec doesnt work, when the fakeRecList was empty thx to adenin --- lib/python/Components/TimerSanityCheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/python/Components/TimerSanityCheck.py') diff --git a/lib/python/Components/TimerSanityCheck.py b/lib/python/Components/TimerSanityCheck.py index 031c9cae..10dc31bd 100644 --- a/lib/python/Components/TimerSanityCheck.py +++ b/lib/python/Components/TimerSanityCheck.py @@ -200,7 +200,7 @@ class TimerSanityCheck: if timer == fakeRec[0] and fakeRec[1]: NavigationInstance.instance.stopRecordService(fakeRec[1]) fakeRecList.remove(fakeRec) - del fakeRec + fakeRec = None for entry in overlaplist: if entry[1] == timer: overlaplist.remove(entry) -- cgit v1.2.3 From af3c70e61bf4e7e2e0afc51b0e3a0cd717c20f54 Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 21 Jan 2009 13:38:00 +0100 Subject: "type" -> "tuner_type"... tuner_type is one of "DVB-S" "DVB-T" "DVB-C" --- lib/python/Components/TimerSanityCheck.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/python/Components/TimerSanityCheck.py') diff --git a/lib/python/Components/TimerSanityCheck.py b/lib/python/Components/TimerSanityCheck.py index 10dc31bd..99b2fba5 100644 --- a/lib/python/Components/TimerSanityCheck.py +++ b/lib/python/Components/TimerSanityCheck.py @@ -173,8 +173,7 @@ class TimerSanityCheck: def getServiceType(ref): # helper function to get a service type of a service reference serviceInfo = serviceHandler.info(ref) serviceInfo = serviceInfo and serviceInfo.getInfoObject(ref, iServiceInformation.sTransponderData) - if serviceInfo: - return { "Satellite" : "DVB-S", "Cable" : "DVB-C", "Terrestrial" : "DVB-T"}[serviceInfo["type"]] + return serviceInfo and serviceInfo["tuner_type"] or "" ref = timer.service_ref.ref if ref.flags & eServiceReference.isGroup: # service group ? -- cgit v1.2.3