def check_video(video, languages=None, age=None, undefined=False):
    # language test
    if languages and not (languages - video.subtitle_languages):
        logger.debug('All languages %r exist', languages)
        return False

    # age test
    if age and video.age > age:
        logger.debug('Video is older than %r', age)
        return False

    # undefined test
    if undefined and Language('und') in video.subtitle_languages:
        logger.debug('Undefined language found')
        return False

    return True
Dumping and loading a list
dataset/ETHPy150Open Diaoul/subliminal/subliminal/api.py/check_video--crossover with--dataset/ETHPy150Open telegraphic/hickle/tests/test_hickle.py/test_set