fix: fixed paths in youtube downloader

This commit is contained in:
Seaswimmer 2023-07-31 23:41:51 -04:00
parent b706d4905f
commit ca5a2d10b6
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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)