Example #1
0
def do_full_refresh():
    game_controller = RequiredFeature('game-controller').request()
    game_controller.get_games()
    del game_controller
Example #2
0
def do_full_refresh():
    import xbmc
    game_controller = RequiredFeature('game-controller').request()
    game_controller.get_games()
    del game_controller
    xbmc.executebuiltin('Container.Refresh')
Example #3
0
    updater = RequiredFeature('update-service').request()
    core.check_script_permissions()
    updater.check_for_update()
    del updater

    if plugin.get_setting('host', str):
        config_helper = RequiredFeature('config-helper').request()
        config_helper.configure()

        game_refresh_required = False

        try:
            if plugin.get_storage('game_version')['version'] != Game.version:
                game_refresh_required = True
        except KeyError:
            game_refresh_required = True

        if game_refresh_required:
            game_controller = RequiredFeature('game-controller').request()
            game_controller.get_games()
            del game_controller

        plugin.run()
        del plugin
        del core
    else:
        core = RequiredFeature('core').request()
        xbmcgui.Dialog().ok(core.string('name'),
                            core.string('configure_first'))
        del core
Example #4
0
        updater.check_for_update()
        del updater
    core.check_script_permissions()

    if plugin.get_setting('host', str):
        game_refresh_required = False

        try:
            from resources.lib.model.game import Game
            if plugin.get_storage('game_version')['version'] != Game.version:
                game_refresh_required = True
        except KeyError:
            game_refresh_required = True

        if game_refresh_required:
            game_controller = RequiredFeature('game-controller').request()
            game_controller.get_games()
            del game_controller

        plugin.run()
        del plugin
        del core
    else:
        import xbmcgui
        core = RequiredFeature('core').request()
        xbmcgui.Dialog().ok(
                core.string('name'),
                core.string('configure_first')
        )
        del core