Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/pafy/backend_youtube_dl.py", line 38, in _fetch_basic

self._ydl_info = ydl.extract_info(self.videoid, download=False)


 "/usr/local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 815, in extract_info

self.report_error(compat_str(e), e.format_traceback())


 "/usr/local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 620, in report_error

self.trouble(error_message, tb)


 "/usr/local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 590, in trouble

raise DownloadError(message, exc_info)
youtube_dl.utils.DownloadError: ERROR: This video is unavailable.

Traceback (most recent call last):


 "C:\Users\adam\Desktop\Programs\YouTube_MusicDownloader\Main.py", line 5, in <module>

ytdl.extract_info("https://www.youtube.com/watch?v=6GJO_RpBnEg&index=1&list=PLZlppmGv_GIKfcd4t6odoAB9a7aUBMBZi", download=True)


 "C:\Users\adam\AppData\Local\Programs\Python\Python36-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 795, in extract_info

return self.process_ie_result(ie_result, download, extra_info)


 "C:\Users\adam\AppData\Local\Programs\Python\Python36-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 991, in process_ie_result

extra_info=extra)


 "C:\Users\adam\AppData\Local\Programs\Python\Python36-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 856, in process_ie_result

extra_info=extra_info)


 "C:\Users\adam\AppData\Local\Programs\Python\Python36-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 795, in extract_info

return self.process_ie_result(ie_result, download, extra_info)


 "C:\Users\adam\AppData\Local\Programs\Python\Python36-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 849, in process_ie_result

return self.process_video_result(ie_result, download=download)


 "C:\Users\adam\AppData\Local\Programs\Python\Python36-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 1619, in process_video_result

self.process_info(new_info)


 "C:\Users\adam\AppData\Local\Programs\Python\Python36-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 1966, in process_info

self.post_process(filename, info_dict)


 "C:\Users\adam\AppData\Local\Programs\Python\Python36-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 2033, in post_process

self.report_error(e.msg)


 "C:\Users\adam\AppData\Local\Programs\Python\Python36-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 612, in report_error

self.trouble(error_message, tb)


 "C:\Users\adam\AppData\Local\Programs\Python\Python36-32\lib\site-packages\youtube_dl\YoutubeDL.py", line 582, in trouble

raise DownloadError(message, exc_info)
youtube_dl.utils.DownloadError: ERROR: Could not write header for output file #0 (incorrect codec parameters ?): Error number -22 occurred
