simply dl original audio on #audio (?)

This commit is contained in:
Tomááas Mladek 2018-02-04 23:38:07 +01:00
parent 9d1638d03f
commit 71cbe7231f

View file

@ -55,10 +55,10 @@ def download_ydl(urls, subdir, date, extract=False):
} }
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': 'wav'
}] # }]
with youtube_dl.YoutubeDL(ydl_opts) as ydl: with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download(urls) ydl.download(urls)
out_dir = f'{OUT_DIR}/{subdir}/' out_dir = f'{OUT_DIR}/{subdir}/'