Tweak ytdl args a bit

Almost there
This commit is contained in:
2020-03-04 00:17:29 -06:00
parent 2cff3fdc53
commit 9f5a9ac810

View File

@@ -71,9 +71,14 @@ class Library:
continue continue
# Download the song # Download the song
ytdl_opts = { ytdl_opts = {
'audio-format': 'best', 'format': 'bestaudio',
'x' 'postprocessors': [{
'playlist-items': 1 'key': 'FFmpegExtractAudio',
'preferredcodec': 'opus',
'preferredquality': '192'
}],
'extract_audio': True,
'playlist_items': 1,
} }
with youtube_dl.YoutubeDL(ytdl_opts) as ydl: with youtube_dl.YoutubeDL(ytdl_opts) as ydl:
ydl.download([songcontent['source']]) ydl.download([songcontent['source']])