oe-alliance / AutoBouquetsMaker

Automatically build and update bouquets from the DVB stream.
GNU General Public License v3.0
23 stars 59 forks source link

Scan on boot #257

Closed AbuBaniaz closed 8 months ago

AbuBaniaz commented 1 year ago

Grog's build had a plugin to make ABM run on boot. Can this be added to the list of timers in ABM?

His plugin was just

from Screens.Screen import Screen
from Plugins.Plugin import PluginDescriptor
from Plugins.SystemPlugins.AutoBouquetsMaker.plugin import *
from Components.NimManager import nimmanager
def Plugins(**kwargs):
    if any([nimmanager.hasNimType(x) for x in "DVB-S", "DVB-T", "DVB-C"]):
        return PluginDescriptor(name='start abm scan', description='Scan ABM on boot', where=PluginDescriptor.WHERE_SESSIONSTART, fnc=startscan, needsRestart=True)