Final fix

This commit is contained in:
2024-04-05 16:50:57 +02:00
parent 6790d33119
commit e47d7c0ecc
+4 -5
View File
@@ -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