def get_live(): live, next_live_in = Event.closest_live() stream_url_play = url_for('main.podcast', id=live.podcast().id) return { 'function': 'updateLive', 'content': { "next_live_in": next_live_in, "stream_url_play": stream_url } }