'mp4'},], 'outtmpl':out_folder + '%(title)s.%(ext)s', 'logtostderr':False, 'quiet':True } song = False video = True try: await v_url.edit("`Fetching playlist data, please wait..`") with YoutubeDL(opts) as ytdl: ytdl_data = ytdl.extract_info(url) ...