fix(youtubedownloader): fixed uploading files
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 52s
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 52s
This commit is contained in:
parent
c83e1bddb5
commit
af27593fa9
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ class YouTubeDownloader(commands.Cog):
|
||||||
if os.path.isfile(output[0]):
|
if os.path.isfile(output[0]):
|
||||||
with open(output[0], 'rb') as file:
|
with open(output[0], 'rb') as file:
|
||||||
try:
|
try:
|
||||||
complete_message = await ctx.send(content="YouTube Downloader completed!\nDownloaded file:", file=discord.File(file, output[3]))
|
complete_message = await ctx.send(content="YouTube Downloader completed!\nDownloaded file:", file=discord.File(file, output[2]))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
complete_message = await ctx.send(content="YouTube Downloader completed, but the file was too large to upload.")
|
complete_message = await ctx.send(content="YouTube Downloader completed, but the file was too large to upload.")
|
||||||
file.close()
|
file.close()
|
||||||
|
|
Loading…
Reference in a new issue