From 3599539f102d1c20c9c967249a06bbfcf6e7db2d Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Tue, 24 Jul 2007 21:59:53 +0000 Subject: display Satfinder, SatelliteEquipmentControl and PositionerSetup plugins only if a DVB-S or DVB-S2 frontend is installed --- lib/python/Plugins/SystemPlugins/Satfinder/plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/python/Plugins/SystemPlugins/Satfinder/plugin.py') diff --git a/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py b/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py index f3fb35eb..3cf48fb8 100644 --- a/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py +++ b/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py @@ -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 [] -- cgit v1.2.3