dont let open satfinder for "2nd cable from rotor" and "loothrough" connected lnbs
authorghost <andreas.monzner@multimedia-labs.de>
Thu, 18 Dec 2008 17:08:16 +0000 (18:08 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Thu, 18 Dec 2008 17:08:16 +0000 (18:08 +0100)
lib/python/Plugins/SystemPlugins/Satfinder/plugin.py

index 72982483e5a67858f437a9797b7fd57a30e9a21b..87dc81e4abad28f1f27cdb3a0e7ba368cf6ed126 100644 (file)
@@ -259,7 +259,13 @@ class SatNimSelection(Screen):
                self.session.open(Satfinder, selection)
 
 def SatfinderMain(session, **kwargs):
                self.session.open(Satfinder, selection)
 
 def SatfinderMain(session, **kwargs):
-       nimList = nimmanager.getNimListOfType("DVB-S")
+       nims = nimmanager.getNimListOfType("DVB-S")
+
+       nimList = []
+       for x in nims:
+               if not nimmanager.getNimConfig(x).configMode.value in ("loopthrough", "satposdepends", "nothing"):
+                       nimList.append(x)
+
        if len(nimList) == 0:
                session.open(MessageBox, _("No satellite frontend found!!"), MessageBox.TYPE_ERROR)
        else:
        if len(nimList) == 0:
                session.open(MessageBox, _("No satellite frontend found!!"), MessageBox.TYPE_ERROR)
        else: