From f3fd4a8311dd494239607aab0674663d31653fa4 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 26 Nov 2023 12:33:52 -0500 Subject: [PATCH] fix(youtubedownloader): fixed erroring when deleting a downloaded file --- youtubedownloader/youtubedownloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtubedownloader/youtubedownloader.py b/youtubedownloader/youtubedownloader.py index 26a47b8..e2d7ff6 100644 --- a/youtubedownloader/youtubedownloader.py +++ b/youtubedownloader/youtubedownloader.py @@ -120,7 +120,7 @@ class YouTubeDownloader(commands.Cog): file.close() if delete is True or await self.bot.is_owner(ctx.author) is False: if output[1] is False: - os.remove(output) + os.remove(output[0]) await complete_message.edit(content="YouTube Downloader completed!\nFile has been deleted.\nDownloaded file:") if output[1] is True: await complete_message.edit(content="YouTube Downloader completed!\nFile has not been deleted, as it was previously downloaded and saved.\nDownloaded file:")