From e47d7c0ecc25604e87ef60b3783e7161119bb481 Mon Sep 17 00:00:00 2001 From: Migatu Date: Fri, 5 Apr 2024 16:50:57 +0200 Subject: [PATCH] Final fix --- bot.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bot.py b/bot.py index 70107db..c809a26 100644 --- a/bot.py +++ b/bot.py @@ -1103,11 +1103,10 @@ async def get_file(ctx, source, link): logger.info( "Failed to download %s, make sure yt_dlp is up to date", link ) - for item in Path.glob(Path(dir_path), "**/*.mp3"): - file = item.as_posix() - if platform == "win32": - file = file.replace("/", "\\") - file_list.append(file) + file = item.as_posix() + if platform == "win32": + file = file.replace("/", "\\") + file_list.append(file) return dir_path, file_list # define an asynchronous generator