fix: I misunderstood loops 💀

This commit is contained in:
SeaswimmerTheFsh 2023-08-02 13:35:55 -04:00
parent 7dfee629f8
commit b7e73178d2
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 5019678FD9CF50D8

View file

@ -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(1)
await asyncio.sleep(0.2)
if os.path.isfile(full_filename):
with open(full_filename, 'rb') as file:
try: