def parse_user_list(filename):
    """ Read the urls from the file and return as a list. """
    urls = []
    with open(filename, 'r') as f:
        # We'll be pretty liberal in what we take - youtube-dl should do the error checking.
        for line in f:
            line = line.strip()
            if line.startswith('#'):       # It's a comment
                continue
            elif line.startswith('http'):  # This is a start...
                urls.append(line)
    return urls