correction command play

This commit is contained in:
BFlow 2020-04-29 17:56:55 +02:00
parent 595d2f9a19
commit 5ed705a41c

View file

@ -270,7 +270,7 @@ class Mybot(commands.Cog):
}], }],
} }
with youtube_dl.YoutubeDL(ydl_opts) as ydl: with youtube_dl.YoutubeDL(ydl_opts) as ydl:
await ydl.download([url]) ydl.download([url])
info_dict = ydl.extract_info(url, download=False) info_dict = ydl.extract_info(url, download=False)
out_file = ydl.prepare_filename(info_dict) out_file = ydl.prepare_filename(info_dict)
self.sounds.append((out_file, ctx)) self.sounds.append((out_file, ctx))