fix: chatgpt fix 💪
This commit is contained in:
parent
21f3a1cace
commit
d34c079ea7
1 changed files with 1 additions and 1 deletions
|
@ -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."""
|
||||
|
|
Loading…
Reference in a new issue