simply dl original audio on #audio (?)
This commit is contained in:
parent
9d1638d03f
commit
71cbe7231f
1 changed files with 4 additions and 4 deletions
8
robot.py
8
robot.py
|
@ -55,10 +55,10 @@ def download_ydl(urls, subdir, date, extract=False):
|
|||
}
|
||||
if extract:
|
||||
ydl_opts['format'] = 'bestaudio'
|
||||
ydl_opts['postprocessors'] = [{
|
||||
'key': 'FFmpegExtractAudio',
|
||||
'preferredcodec': 'wav'
|
||||
}]
|
||||
# ydl_opts['postprocessors'] = [{
|
||||
# 'key': 'FFmpegExtractAudio',
|
||||
# 'preferredcodec': 'wav'
|
||||
# }]
|
||||
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
|
||||
ydl.download(urls)
|
||||
out_dir = f'{OUT_DIR}/{subdir}/'
|
||||
|
|
Loading…
Reference in a new issue