From: Felix Domke Date: Wed, 10 Jun 2009 20:37:22 +0000 (+0200) Subject: use index as id for predefined transponder list X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=931a7ee49607de4222947c211b3ad53aa982d915;hp=f34ad86a302613a2831c7b2080c20696be6a4dc9 use index as id for predefined transponder list --- diff --git a/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py b/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py index 8e14881..d4fe6b5 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)