PliExtraInfo: Indicate also data in case of streamed services
authorlittlesat <littlesat99@yahoo.com>
Tue, 21 Jul 2015 17:41:56 +0000 (19:41 +0200)
committerlittlesat <littlesat99@yahoo.com>
Tue, 21 Jul 2015 17:41:56 +0000 (19:41 +0200)
lib/python/Components/Converter/PliExtraInfo.py

index 281c099..6640c85 100644 (file)
@@ -142,7 +142,9 @@ class PliExtraInfo(Poll, Converter, object):
                return "%d-%d:%05d:%04d:%04d:%04d" % (onid, tsid, sidpid, vpid, apid, pcrpid)
 
        def createTransponderInfo(self, fedata, feraw):
-               if "DVB-T" in feraw.get("tuner_type"):
+               if not feraw:
+                       return ""
+               elif "DVB-T" in feraw.get("tuner_type"):
                        tmp = addspace(self.createChannelNumber(fedata, feraw)) + addspace(self.createFrequency(feraw)) + addspace(self.createPolarization(fedata))
                else:
                        tmp = addspace(self.createFrequency(feraw)) + addspace(self.createPolarization(fedata))
@@ -262,8 +264,6 @@ class PliExtraInfo(Poll, Converter, object):
                feraw = self.feraw
                if not feraw:
                        feraw = info.getInfoObject(iServiceInformation.sTransponderData)
-                       if not feraw:
-                               return ""
                        fedata = ConvertToHumanReadable(feraw)
                else:
                        fedata = self.fedata