**
What do i need to add to specify that all the download mp3 will go to this directory: e:/python/downloadedsongs
ydl_opts = {
'format': 'bestaudio/best',
'download_archive': 'downloaded_songs.txt',
'outtmpl': '%(title)s.%(ext)s',
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '192',
}],
'logger': MyLogger(),
'progress_hooks': [my_hook],
}
if i understand it correctly outtmpl is for the template of the name of output file. **
outtmpl can contain directory names, simply set
'outtmpl': 'e:/python/downloadedsongs/%(title)s.%(ext)s',