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())
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())
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()