youtube dl python get file name

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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)