From ca5a2d10b6c7de144e11b4138213e4b011dc3fa4 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 31 Jul 2023 23:41:51 -0400 Subject: [PATCH] fix: fixed paths in youtube downloader --- musicdownloader/musicdownloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/musicdownloader/musicdownloader.py b/musicdownloader/musicdownloader.py index 3a3b2df..2e85e35 100644 --- a/musicdownloader/musicdownloader.py +++ b/musicdownloader/musicdownloader.py @@ -52,7 +52,7 @@ class MusicDownloader(commands.Cog): 'progress_hooks': [hook], 'format': 'm4a/bestaudio/best', 'postprocessors': [{'key': 'FFmpegExtractAudio', 'preferredcodec': 'm4a',}], - 'paths': [{'home': path}] + 'paths': {'home': path} } with YoutubeDL(ydl_opts) as ydl: error_code = ydl.download(url)