def media_resources(media_list, download=False):
    data = []
    for media in media_list:
        if media.data_file.name == '' and download:
            media = create_media(media)

            if media:
                data.append(media)
        else:
            data.append(media)

    return data
If the given credentials are valid, return a User object.
dataset/ETHPy150Open kobotoolbox/kobocat/onadata/apps/main/models/meta_data.py/media_resources--crossover with--dataset/ETHPy150Open IanLewis/kay/kay/auth/__init__.py/login