display Satfinder, SatelliteEquipmentControl and PositionerSetup
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 24 Jul 2007 21:59:53 +0000 (21:59 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 24 Jul 2007 21:59:53 +0000 (21:59 +0000)
plugins only if a DVB-S or DVB-S2 frontend is installed

lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py
lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py
lib/python/Plugins/SystemPlugins/Satfinder/plugin.py

index 49a096f..9ee4777 100644 (file)
@@ -574,4 +574,7 @@ def PositionerSetupStart(menuid):
                return []
 
 def Plugins(**kwargs):
-       return PluginDescriptor(name=_("Positioner setup"), description="Setup your positioner", where = PluginDescriptor.WHERE_SETUP, fnc=PositionerSetupStart)
+       if (nimmanager.hasNimType("DVB-S")):
+               return PluginDescriptor(name=_("Positioner setup"), description="Setup your positioner", where = PluginDescriptor.WHERE_SETUP, fnc=PositionerSetupStart)
+       else:
+               return []
index b9d3e44..2c88bda 100644 (file)
@@ -66,4 +66,7 @@ def SecSetupStart(menuid):
        return [ ]
 
 def Plugins(**kwargs):
-       return PluginDescriptor(name=_("Satellite Equipment Setup"), description="Setup your satellite equipment", where = PluginDescriptor.WHERE_SETUP, fnc=SecSetupStart)
+       if (nimmanager.hasNimType("DVB-S")):
+               return PluginDescriptor(name=_("Satellite Equipment Setup"), description="Setup your satellite equipment", where = PluginDescriptor.WHERE_SETUP, fnc=SecSetupStart)
+       else:
+               return []
index f3fb35e..3cf48fb 100644 (file)
@@ -284,4 +284,7 @@ def SatfinderStart(menuid):
                return []
 
 def Plugins(**kwargs):
-       return PluginDescriptor(name=_("Satfinder"), description="Helps setting up your dish", where = PluginDescriptor.WHERE_SETUP, fnc=SatfinderStart)
+       if (nimmanager.hasNimType("DVB-T")):
+               return PluginDescriptor(name=_("Satfinder"), description="Helps setting up your dish", where = PluginDescriptor.WHERE_SETUP, fnc=SatfinderStart)
+       else:
+               return []