def youtube_id(link):
    """ Get the YouTube ID, regardless of format. """
    start_flags = ['youtu.be/', "?v=", "/v/"]
    start_id = None
    for flag in start_flags:
        if flag in link:
            start_id = link.find(flag) + len(flag)
            break
    if not start_id: # If it's not a valid URL
        return False
    the_id = link[start_id:start_id+11]
    return the_id