polymath icon indicating copy to clipboard operation
polymath copied to clipboard

OSError: [WinError 87] Paramètre incorrect when i try to add a youtube video

Open DomDumont opened this issue 2 years ago • 1 comments

Hi, On Windows 10, I got this error when I try to add a youtube video :

\yt_dlp\utils.py", line 886, in init ... AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1155, in _execute_child startupinfo) OSError: [WinError 87] Paramètre incorrect

DomDumont avatar Feb 08 '23 08:02 DomDumont

Not sure why this is happening and don't have a Windows10 system to test it.

You can try replacing the line from yt_dlp import YoutubeDL with import youtube_dl as YoutubeDL and installing pip install youtube_dl before hand. It's slower than the lib i used but might work for you.

Or you could investigate https://github.com/yt-dlp/yt-dlp and if you find out what's wrong, give me a hint!

Let me know!

samim23 avatar Feb 11 '23 21:02 samim23