youtube dl python get file name

Solutions on MaxInterview for youtube dl python get file name by the best coders in the world

showing results for - "youtube dl python get file name"
Murray
02 Mar 2017
1ydl_opts = {
2  'format': 'bestaudio',
3  'postprocessors': [{'key':'FFmpegExtractAudio'}],
4} 
5
6with youtube_dl.YoutubeDL(ydl_opts) as ydl:
7  info = ydl.extract_info(uri, download=True)
8  filename = ydl.prepare_filename(info)