Tweak ytdl args a bit

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

View File

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