aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-10-21 10:19:39 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-10-21 10:19:39 +0000
commit98e1d63e94f09905477aa04ed1b6cb91016f48de (patch)
treea8ac26de3cfc51e2fe3edfecac285a17ff29d842 /lib/python
parenta22c31de792a36f645c9c91d954e9d8e30f82064 (diff)
downloadenigma2-98e1d63e94f09905477aa04ed1b6cb91016f48de.tar.gz
enigma2-98e1d63e94f09905477aa04ed1b6cb91016f48de.zip
don't crash when having unknown fec/pol values (possibly due to broken satellites.xml)
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Plugins/SystemPlugins/Satfinder/plugin.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py b/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py
index 50182a9e..fc1d3ab3 100644
--- a/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py
+++ b/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py
@@ -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)