misc: added more info to the error message

This commit is contained in:
Seaswimmer 2023-08-02 14:53:49 -04:00
parent 9b647d54c4
commit 6e3e52d66d
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -151,7 +151,7 @@ class MusicDownloader(commands.Cog):
try: try:
ytdlp_output = youtube_download(self, url, data_path, message) ytdlp_output = youtube_download(self, url, data_path, message)
except utils.DownloadError or utils.ExtractorError: except utils.DownloadError or utils.ExtractorError:
await ctx.send("Please provide a link to YouTube and not another site.") await message.edit("Please provide a link to YouTube and not another site.\mThe site you've linked to is known for using DRM protection, so MusicDownloader cannot download from it.")
return return
full_filename = os.path.join(data_path, ytdlp_output[0]) full_filename = os.path.join(data_path, ytdlp_output[0])
while not os.path.isfile(full_filename): while not os.path.isfile(full_filename):