def run(): if mode == 'rails': dazn.rails_items(client.rails(id, params)) elif mode == 'rail': dazn.rail_items(client.rail(id, params)) elif mode == 'play': dazn.playback(client.playback(id)) elif mode == 'play_context': dazn.play_context(client.playback(id), title)
def run(): if mode == 'rails': dazn.rails_items(client.rails(id, params), id) elif mode == 'rail': dazn.rail_items(client.rail(id, params)) elif mode == 'epg': date = params if id == 'date': date = get_date() dazn.epg_items(client.epg(date), date) elif mode == 'play': dazn.playback(client.playback(id)) elif mode == 'play_context': dazn.playback(client.playback(id), title, True)
def run(): if mode == 'rails': dazn.rails_items(client.rails(_id, params), _id) elif 'rail' in mode: dazn.rail_items(client.rail(_id, params), mode) elif 'epg' in mode: date = params if _id == 'date': date = get_date() dazn.epg_items(client.epg(date), date, mode) elif mode == 'play': dazn.playback(client.playback(_id)) elif mode == 'play_context': dazn.playback(client.playback(_id), title, True) elif mode == 'is_settings': is_settings() elif mode == 'is_helper': is_helper()