From: ghost Date: Thu, 18 Dec 2008 17:08:16 +0000 (+0100) Subject: dont let open satfinder for "2nd cable from rotor" and "loothrough" connected lnbs X-Git-Tag: 2.6.0~534 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/a4aa303dd816ac507892afb9e666825ec5e4e8d2 dont let open satfinder for "2nd cable from rotor" and "loothrough" connected lnbs --- diff --git a/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py b/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py index 72982483..87dc81e4 100644 --- a/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py +++ b/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py @@ -259,7 +259,13 @@ class SatNimSelection(Screen): 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: