fix: chatgpt fix 💪

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

View file

@ -87,7 +87,7 @@ class MusicDownloader(commands.Cog):
return return
async def download_file(self, url: str, path: str): async def download_file(self, url: str, path: str):
with concurrent.futures.ThreadPoolExecutor() as executor: 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 return result
def youtube_download(self, url: str, path: str): def youtube_download(self, url: str, path: str):
"""This function does the actual downloading of the YouTube Video.""" """This function does the actual downloading of the YouTube Video."""