diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2009-06-10 22:37:22 +0200 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2009-06-10 22:37:22 +0200 |
| commit | 931a7ee49607de4222947c211b3ad53aa982d915 (patch) | |
| tree | 71da0d7c1258ab55769b558341fd272fab90958f /lib/python/Plugins/SystemPlugins/Satfinder | |
| parent | f34ad86a302613a2831c7b2080c20696be6a4dc9 (diff) | |
| download | enigma2-931a7ee49607de4222947c211b3ad53aa982d915.tar.gz enigma2-931a7ee49607de4222947c211b3ad53aa982d915.zip | |
use index as id for predefined transponder list
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/Satfinder')
| -rw-r--r-- | lib/python/Plugins/SystemPlugins/Satfinder/plugin.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py b/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py index 8e148812..d4fe6b58 100644 --- a/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py +++ b/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py @@ -156,6 +156,7 @@ class Satfinder(ScanSetup): transponderlist = nimmanager.getTransponders(orb_pos) list = [] default = None + index = 0 for x in transponderlist: if x[3] == 0: pol = "H" @@ -193,8 +194,9 @@ class Satfinder(ScanSetup): fec = "FEC Unknown" e = str(x[1]) + "," + str(x[2]) + "," + pol + "," + fec if default is None: - default = e - list.append(e) + default = str(index) + list.append((str(index), e)) + index += 1 self.tuning_transponder = ConfigSelection(choices = list, default = default) self.tuning_transponder.addNotifier(self.retune, initial_call = False) |
