# The newline with indent is for easier reading. # This should be all on one line connected to each other YouTube(playlist[i]) .streams .filter(subtype="mp4") .first() .download(output_path=downloads_dir)