"type" -> "tuner_type"... tuner_type is one of "DVB-S" "DVB-T" "DVB-C"
authorghost <andreas.monzner@multimedia-labs.de>
Wed, 21 Jan 2009 12:38:00 +0000 (13:38 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Wed, 21 Jan 2009 12:38:00 +0000 (13:38 +0100)
lib/python/Components/TimerSanityCheck.py

index 10dc31bd810dd614e7aeb5caa83c4e6b92f81107..99b2fba52cebc151c8afbf1a3b575084f26fd105 100644 (file)
@@ -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)
                                        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 ?
 
                                        ref = timer.service_ref.ref
                                        if ref.flags & eServiceReference.isGroup: # service group ?