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 49a096fb328c66068c79b53555991b5d0736408b..9ee477710d4bb09d69eef25aa3ed0518b11b64f1 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 b9d3e4445bd47f2133834e882c24941e77ed2972..2c88bdad5c297922d3e21b0094542d3721185c78 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 f3fb35ebf9f5200aad7505dae67b6f1147fe18dd..3cf48fb8797b4141e2a8ae180da893edf66227f0 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 []