From d34c079ea70afa8078dada8f3184ce9673dc5785 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 5 Aug 2023 18:07:12 -0400 Subject: [PATCH] fix: chatgpt fix :muscle: --- musicdownloader/musicdownloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/musicdownloader/musicdownloader.py b/musicdownloader/musicdownloader.py index a523988..3a86346 100644 --- a/musicdownloader/musicdownloader.py +++ b/musicdownloader/musicdownloader.py @@ -87,7 +87,7 @@ class MusicDownloader(commands.Cog): return async def download_file(self, url: str, path: str): with concurrent.futures.ThreadPoolExecutor() as executor: - result = await self.bot.loop.run_in_executor(executor, youtube_download, url, path) + result = await self.bot.loop.run_in_executor(executor, self.youtube_download, url, path) return result def youtube_download(self, url: str, path: str): """This function does the actual downloading of the YouTube Video."""