fix: I wasn't awaiting something

This commit is contained in:
Seaswimmer 2023-08-05 18:05:22 -04:00
parent c2a92d5fba
commit 21f3a1cace
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -154,7 +154,7 @@ class MusicDownloader(commands.Cog):
msg = ctx.send
message = await msg("YouTube Downloader started!")
try:
ytdlp_output = download_file(self, url, data_path)
ytdlp_output = await download_file(self, url, data_path)
except utils.DownloadError or utils.ExtractorError:
await message.edit(content="Please provide a link to YouTube and not another site.\nThe site you've linked to is known for using DRM protection, so MusicDownloader cannot download from it.")
return