don't crash when having unknown fec/pol values (possibly due to broken satellites...
authorFelix Domke <tmbinc@elitedvb.net>
Sun, 21 Oct 2007 10:19:39 +0000 (10:19 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sun, 21 Oct 2007 10:19:39 +0000 (10:19 +0000)
lib/python/Plugins/SystemPlugins/Satfinder/plugin.py

index 50182a9e3b08c4528aaf42b30e93b5b14e6d3319..fc1d3ab3c353cfa26955280117313f95c7c3de09 100644 (file)
@@ -189,6 +189,8 @@ class Satfinder(ScanSetup):
                                        pol = "CL"
                                elif x[3] == 3:
                                        pol = "CR"
+                               else:
+                                       pol = "??"
                                if x[4] == 0:
                                        fec = "FEC_AUTO"
                                elif x[4] == 1:
@@ -205,6 +207,8 @@ class Satfinder(ScanSetup):
                                        fec = "FEC_8_9"
                                elif x[4] == 6:
                                        fec = "FEC_None"
+                               else:
+                                       fec = "FEC_Unknown"
                                list.append(str(x[1]) + "," + str(x[2]) + "," + pol + "," + fec)
                        self.tuning_transponder = ConfigSelection(choices = list)
                        self.tuning_transponder.addNotifier(self.retune, initial_call = False)