Esempio n. 1
0
 def createSetup(self):
     self.list = []
     self.list.append(self.scanProvider)
     if self.scan_provider.value:
         self.list.append(self.tunerEntry)
         for index in providers:
             if index[0] == self.scan_provider.value and index[1][2]:
                 self.list.append(self.scanHD)
                 break
         self.list.append(
             getConfigListEntry(_("Use fastscan channel numbering"),
                                self.scan_keepnumbering))
         self.list.append(
             getConfigListEntry(_("Use fastscan channel names"),
                                self.scan_keepsettings))
         self.list.append(
             getConfigListEntry(_("Create separate radio userbouquet"),
                                self.scan_create_radio_bouquet))
         self.list.append(
             getConfigListEntry(_("Drop unconfigured satellites"),
                                config.misc.fastscan.drop))
         self.list.append(
             getConfigListEntry(_("Enable auto fastscan"),
                                config.misc.fastscan.auto))
         if config.misc.fastscan.auto.value == "multi":
             for provider in providers:
                 if nimmanager.getNimListForSat(
                         transponders[provider[1][0]][3]):
                     self.list.append(
                         getConfigListEntry(
                             _("Enable auto fastscan for %s") % provider[0],
                             self.config_autoproviders[provider[0]]))
     self["config"].list = self.list
     self["config"].l.setList(self.list)
Esempio n. 2
0
 def providerChanged(configEntry):
     if configEntry.value:
         nimList = [
             (str(x), nimmanager.nim_slots[x].friendly_full_description)
             for x in nimmanager.getNimListForSat(transponders[[
                 x[1][0] for x in providers if x[0] == configEntry.value
             ][0]][3])
         ]
         self.scan_nims = ConfigSelection(
             default=lastConfiguration[0] if lastConfiguration
             and lastConfiguration[0] in [x[0] for x in nimList] else
             nimList[0][0],
             choices=nimList)
         self.tunerEntry = getConfigListEntry(_("Tuner"),
                                              self.scan_nims)
Esempio n. 3
0
def getProviderList():
	return [x[0] for x in providers if nimmanager.getNimListForSat(transponders[x[1][0]][3])]