1ydl_opts = {
2 'format': 'bestaudio/best',
3 'outtmpl': 'e:/python/downloadedsongs/%(title)s.%(ext)s', # <--- pay attention here
4 'download_archive': 'downloaded_songs.txt',
5 'outtmpl': '%(title)s.%(ext)s',
6 'postprocessors': [{
7 'key': 'FFmpegExtractAudio',
8 'preferredcodec': 'mp3',
9 'preferredquality': '192',
10 }],
11 'logger': MyLogger(),
12 'progress_hooks': [my_hook],
13
14}