def get_video_type(link):
    """ Takes a url and decides if it's Vimeo or YouTube.
    Returns None for unkown types. """
    if 'vimeo.com/' in link:
        return 'vimeo'
    elif 'youtube.com/' in link or 'youtu.be' in link:
        return 'youtube'
    return None