From ef29d2c68e316d1949c291e87d3c86fb746456ab Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 1 Aug 2023 12:40:08 -0400 Subject: [PATCH] misc: reduced sleep time on ytdlp loop --- musicdownloader/musicdownloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/musicdownloader/musicdownloader.py b/musicdownloader/musicdownloader.py index 39fc7b3..83c6d23 100644 --- a/musicdownloader/musicdownloader.py +++ b/musicdownloader/musicdownloader.py @@ -90,7 +90,7 @@ class MusicDownloader(commands.Cog): filename = youtube_download(self, url, data_path, message) full_filename = os.path.join(data_path, filename) while not os.path.isfile(full_filename): - await asyncio.sleep(1) + await asyncio.sleep(0.5) if os.path.isfile(full_filename): with open(full_filename, 'rb') as file: await ctx.send(content="YouTube Downloader completed!\nDownloaded file:", file=discord.File(file, {filename}))