Ignore:
Timestamp:
12/07/11 11:58:44 (12 years ago)
Author:
madie
Message:

[ipk] update crossepg

Location:
ipk/source.sh4/swapepg_crossepg
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/swapepg_crossepg/var/swap/extensions/CrossEPG/plugin.py

    r7451 r12090  
    1010                return []
    1111
     12def call_downloader(session, **kwargs):
     13        crossepg_main.downloader(session)
     14       
     15def call_loaderAsPlugin(session, **kwargs):
     16        crossepg_main.loaderAsPlugin(session)
     17       
     18def call_setup(session, **kwargs):
     19        crossepg_main.setup(session)
     20       
     21def call_autostart(reason, session):
     22        crossepg_main.autostart(reason, session)
     23       
    1224def Plugins(**kwargs):
    1325        config = CrossEPG_Config()
     
    1830                                                                                description=_("An EPG downloader"),
    1931                                                                                where = [ PluginDescriptor.WHERE_EXTENSIONSMENU, PluginDescriptor.WHERE_PLUGINMENU ],
    20                                                                                 fnc = crossepg_main.downloader))
     32                                                                                fnc = call_downloader))
    2133        elif config.show_extension == 1:
    2234                plugins.append(PluginDescriptor(name="CrossEPG Downloader",
    2335                                                                                description=_("An EPG downloader"),
    2436                                                                                where = PluginDescriptor.WHERE_EXTENSIONSMENU,
    25                                                                                 fnc = crossepg_main.downloader))
     37                                                                                fnc = call_downloader))
    2638        elif config.show_plugin == 1:
    2739                plugins.append(PluginDescriptor(name="CrossEPG Downloader",
    2840                                                                                description=_("An EPG downloader"),
    2941                                                                                where = PluginDescriptor.WHERE_PLUGINMENU,
    30                                                                                 fnc = crossepg_main.downloader))
     42                                                                                fnc = call_downloader))
    3143       
    3244        if config.isQBOXHD():
     
    3446                                                                                description=_("CrossEPG setup panel"),
    3547                                                                                where = PluginDescriptor.WHERE_PLUGINMENU,
    36                                                                                 fnc = crossepg_main.setup))
     48                                                                                fnc = call_setup))
    3749        else:
    3850                plugins.append(PluginDescriptor(name="CrossEPG",
     
    4456                                                                        description = _("CrossEPG automatic actions"),
    4557                                                                        where = PluginDescriptor.WHERE_SESSIONSTART,
    46                                                                         fnc = crossepg_main.autostart))
     58                                                                        fnc = call_autostart))
     59                                                                       
     60        if config.show_force_reload_as_plugin == 1:
     61                plugins.append(PluginDescriptor(name="CrossEPG Force Reload",
     62                                                                                description=_("CrossEPG Force Reload"),
     63                                                                                where = PluginDescriptor.WHERE_PLUGINMENU,
     64                                                                                fnc = call_loaderAsPlugin))
     65                                                                       
    4766        return plugins;
Note: See TracChangeset for help on using the changeset viewer.