From 7dfee629f8e0963a30e4ad084ec00a79d81c2f84 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 2 Aug 2023 01:38:57 -0400 Subject: [PATCH] fix: increased sleep time to hopefully prevent bugs --- musicdownloader/musicdownloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/musicdownloader/musicdownloader.py b/musicdownloader/musicdownloader.py index b745c60..d93da79 100644 --- a/musicdownloader/musicdownloader.py +++ b/musicdownloader/musicdownloader.py @@ -152,7 +152,7 @@ class MusicDownloader(commands.Cog): ytdlp_output = youtube_download(self, url, data_path, message) full_filename = os.path.join(data_path, ytdlp_output[0]) while not os.path.isfile(full_filename): - await asyncio.sleep(0.5) + await asyncio.sleep(1) if os.path.isfile(full_filename): with open(full_filename, 'rb') as file: try: