fix *required* kwargs. plugins not having **kwargs will probably not run with newer...
[vuplus_dvbapp] / lib / python / Plugins / SystemPlugins / Satfinder / plugin.py
index f3fb35e..eb20b46 100644 (file)
@@ -277,11 +277,14 @@ def SatfinderMain(session, **kwargs):
                        else:
                                session.open(NimSelection)
 
-def SatfinderStart(menuid):
+def SatfinderStart(menuid, **kwargs):
        if menuid == "scan":
                return [(_("Satfinder"), SatfinderMain)]
        else:
                return []
 
 def Plugins(**kwargs):
-       return PluginDescriptor(name=_("Satfinder"), description="Helps setting up your dish", where = PluginDescriptor.WHERE_SETUP, fnc=SatfinderStart)
+       if (nimmanager.hasNimType("DVB-S")):
+               return PluginDescriptor(name=_("Satfinder"), description="Helps setting up your dish", where = PluginDescriptor.WHERE_SETUP, fnc=SatfinderStart)
+       else:
+               return []