postprocess to 256 kbps mp3
This commit is contained in:
parent
b37e4be8b3
commit
eb0e85faa7
1 changed files with 5 additions and 4 deletions
|
@ -79,10 +79,11 @@ class DelojzaBot:
|
||||||
}
|
}
|
||||||
if extract:
|
if extract:
|
||||||
ydl_opts['format'] = 'bestaudio'
|
ydl_opts['format'] = 'bestaudio'
|
||||||
# ydl_opts['postprocessors'] = [{
|
ydl_opts['postprocessors'] = [{
|
||||||
# 'key': 'FFmpegExtractAudio',
|
'key': 'FFmpegExtractAudio',
|
||||||
# 'preferredcodec': 'wav'
|
'preferredcodec': 'mp3',
|
||||||
# }]
|
'preferredquality': '256'
|
||||||
|
}]
|
||||||
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
|
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
|
||||||
ydl.download(urls)
|
ydl.download(urls)
|
||||||
out_dir = os.path.join(self.out_dir, subdir)
|
out_dir = os.path.join(self.out_dir, subdir)
|
||||||
|
|
Loading…
Reference in a new issue