Exemple #1
0
def run():
    if mode == 'root':
        esp.channel(client.channels())
    elif mode == 'sports':
        data = client.catchups()
        cache.cache_data(data)
        esp.sport(data)
    elif mode == 'videos':
        esp.video(cache.get_cache_data(), id)
    elif mode == 'epg':
        data = client.epg()
        cache.cache_data(data)
        esp.epg(data)
    elif mode == 'tvschedule':
        esp.tvschedule(cache.get_cache_data(), id)
    elif mode == 'play':
        esp.play(id, client.token())
Exemple #2
0
def run():
    if mode == 'root':
        items.channel(client.products())
    elif mode == 'sports':
        data = client.catchups()
        cache.cache_data(data)
        items.sport(data)
    elif mode == 'videos':
        items.video(cache.get_cache_data(), id)
    elif mode == 'play':
        items.play(path())
Exemple #3
0
def run():
    if mode == "root":
        items.channel(client.products())
    elif mode == "sports":
        data = client.catchups()
        cache.cache_data(data)
        items.sport(data)
    elif mode == "videos":
        items.video(cache.get_cache_data(), id)
    elif mode == "play":
        items.play(path())
Exemple #4
0
def run():
    if mode == 'root':
        client.user()
        if client.cookie:
            if addon.getSetting('startup') == 'true':
                start_is_helper()
                data = client.menu()
                if data:
                    cache.cache_data(data)
                    addon.setSetting('startup', 'false')
            else:
                data = cache.get_cache_data()
            laola.menu(data)
    elif mode == 'sports':
        laola.sports(cache.get_cache_data(), title)
    elif mode == 'sub_menu':
        laola.sub_menu(client.feeds(params, id))
    elif mode == 'live':
        laola.live(client.live_feed())
    elif mode == 'videos':
        laola.video(client.feeds(params, id))
    elif mode == 'play':
        laola.play(path())
        client.deletesession()
Exemple #5
0
def run():
    if mode == 'root':
        data = client.menu()
        cache.cache_data(data)
        laola.menu(data)
        client.user()
    elif mode == 'sports':
        laola.sports(cache.get_cache_data(), title)
    elif mode == 'sub_menu':
        laola.sub_menu(client.feeds(params, id))
    elif mode == 'live':
        laola.live(client.live_feed())
    elif mode == 'videos':
        laola.video(client.feeds(params, id))
    elif mode == 'play':
        laola.play(path())
        client.deletesession()
Exemple #6
0
def run():
    if mode == "root":
        data = client.menu()
        cache.cache_data(data)
        items.menu(data)
        login()
    elif mode == "sports":
        items.sports(cache.get_cache_data(), title)
    elif mode == "sub_menu":
        items.sub_menu(client.feeds(params, id))
    elif mode == "live":
        items.live(client.live_feed())
    elif mode == "videos":
        items.video(client.feeds(params, id))
    elif mode == "play":
        items.play(path())
        client.deletesession()
Exemple #7
0
def video_category():
    data = cache.get_cache_data()
    if data:
        list_items(sport1.get_video_category_items(data, id))
    xbmcplugin.endOfDirectory(addon_handle)