Exemplo n.º 1
0
def get_current_broadcasting_user():
    '''
    Call http api to check the list of currently broadcasting hosts
    '''
    live_info = get_current_live_info()
    user_set = set()
    for live in live_info['event_info']:
        user_set.add(live['channel']['user_id'])
    return user_set
Exemplo n.º 2
0
def get_current_broadcasting_user():
    live_info = get_current_live_info()
    user_set = set()
    for live in live_info['event_info']:
        user_set.add(live['channel']['user_id'])
    return user_set