Tweak ytdl args a bit
Almost there
This commit is contained in:
parent
2cff3fdc53
commit
9f5a9ac810
11
badwitch.py
11
badwitch.py
@ -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']])
|
||||
|
Loading…
Reference in New Issue
Block a user