def check_video(video, languages=None, age=None, undefined=False):
 if (languages and (not (languages - video.subtitle_languages))):
  logger.debug('All languages %r exist', languages)
  return False
 if (age and (video.age > age)):
  logger.debug('Video is older than %r', age)
  return False
 if (undefined and (Language('und') in video.subtitle_languages)):
  logger.debug('Undefined language found')
  return False
 return True

def check_video ( video , languages = None , age = None , undefined = False ) : if ( languages and ( not ( languages - video . subtitle_languages ) ) ) : logger . debug ( 'All languages %r exist' , languages ) return False if ( age and ( video . age > age ) ) : logger . debug ( 'Video is older than %r' , age ) return False if ( undefined and ( Language ( 'und' ) in video . subtitle_languages ) ) : logger . debug ( 'Undefined language found' ) return False return True
perform some checks on the video .