Skip to content

Commit

Permalink
[plugin.py] Only load ABM if NimManager reports that tuners are insta…
Browse files Browse the repository at this point in the history
…lled.
  • Loading branch information
Huevos committed Mar 13, 2017
1 parent 18f13b0 commit 02342a8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions AutoBouquetsMaker/src/plugin.py
Expand Up @@ -43,8 +43,10 @@ def AutoBouquetsMakerSetup(menuid, **kwargs):
return []

def Plugins(**kwargs):
plist = [PluginDescriptor(name="AutoBouquetsMakerSessionStart", where=PluginDescriptor.WHERE_SESSIONSTART, fnc=AutoBouquetsMakerautostart, needsRestart=True)]
plist.append(PluginDescriptor(name=_("AutoBouquetsMaker"), description="Scan and create bouquets.", where = PluginDescriptor.WHERE_MENU, fnc=AutoBouquetsMakerSetup, needsRestart=True))
if config.autobouquetsmaker.extensions.getValue():
plist.append(PluginDescriptor(name=_("AutoBouquetsMaker Scanner"), description="Scan and create bouquets.", where = PluginDescriptor.WHERE_EXTENSIONSMENU, fnc=startscan, needsRestart=True))
plist = []
if any([nimmanager.hasNimType(x) for x in "DVB-S", "DVB-T", "DVB-C"]):
plist.append(PluginDescriptor(name="AutoBouquetsMakerSessionStart", where=PluginDescriptor.WHERE_SESSIONSTART, fnc=AutoBouquetsMakerautostart, needsRestart=True))
plist.append(PluginDescriptor(name=_("AutoBouquetsMaker"), description="Scan and create bouquets.", where = PluginDescriptor.WHERE_MENU, fnc=AutoBouquetsMakerSetup, needsRestart=True))
if config.autobouquetsmaker.extensions.getValue():
plist.append(PluginDescriptor(name=_("AutoBouquetsMaker Scanner"), description="Scan and create bouquets.", where = PluginDescriptor.WHERE_EXTENSIONSMENU, fnc=startscan, needsRestart=True))
return plist

0 comments on commit 02342a8

Please sign in to comment.