jely2002 / youtube-dl-gui

A cross-platform GUI for youtube-dl made in Electron and node.js
GNU Affero General Public License v3.0
6.4k stars 438 forks source link

Can I use password protected HTTPS proxy? #489

Open artquest opened 1 year ago

artquest commented 1 year ago

I tried like this: freeuser1:freeuser1@us27.freeconnect.link:9251 — but got an error. The proxy is working in Chrome.

{
  "shortMessage": "Command failed with exit code 1: C:\\Users\\%username%\\AppData\\Local\\Programs\\youtube-dl-gui\\resources\\app.asar.unpacked\\binaries\\yt-dlp.exe -J --flat-playlist --no-cache-dir --ignore-config --user-agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36 --proxy freeuser1:freeuser1@us27.freeconnect.link:9251 --no-check-certificate --yes-playlist https://www.youtube.com/watch?v=Bla6rgfZgaI",
  "command": "C:\\Users\\%username%\\AppData\\Local\\Programs\\youtube-dl-gui\\resources\\app.asar.unpacked\\binaries\\yt-dlp.exe -J --flat-playlist --no-cache-dir --ignore-config --user-agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36 --proxy freeuser1:freeuser1@us27.freeconnect.link:9251 --no-check-certificate --yes-playlist https://www.youtube.com/watch?v=Bla6rgfZgaI",
  "exitCode": 1,
  "stdout": "null",
  "stderr": "WARNING: [youtube] Unable to download webpage: <urlopen error [WinError 10054] An existing connection was forcibly closed by the remote host>\nWARNING: [youtube] <urlopen error [WinError 10054] An existing connection was forcibly closed by the remote host>. Retrying (1/3)...\nWARNING: [youtube] <urlopen error [WinError 10054] An existing connection was forcibly closed by the remote host>. Retrying (2/3)...\nWARNING: [youtube] <urlopen error [WinError 10054] An existing connection was forcibly closed by the remote host>. Retrying (3/3)...\nWARNING: [youtube] Unable to download webpage: <urlopen error [WinError 10054] An existing connection was forcibly closed by the remote host>\nWARNING: [youtube] <urlopen error [WinError 10054] An existing connection was forcibly closed by the remote host>. Retrying (1/3)...\nWARNING: [youtube] <urlopen error [WinError 10054] An existing connection was forcibly closed by the remote host>. Retrying (2/3)...\nWARNING: [youtube] <urlopen error [WinError 10054] An existing connection was forcibly closed by the remote host>. Retrying (3/3)...\nWARNING: [youtube] Unable to download API page: <urlopen error [WinError 10054] An existing connection was forcibly closed by the remote host> (caused by URLError(ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)))\nERROR: [youtube] Bla6rgfZgaI: Unable to download API page: <urlopen error [WinError 10054] An existing connection was forcibly closed by the remote host> (caused by URLError(ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)))",
  "failed": true,
  "timedOut": false,
  "isCanceled": false,
  "killed": false
}
StefanLobbenmeier commented 1 year ago

I think yt-dlp also expects the protocol of the proxy, e.g. socks5://freeuser1:freeuser1@us27.freeconnect.link:9251

But it also does not work on my machine (tried http, https, socks5), not sure if the proxy server still exists or what protocol it expects

--proxy URL                     Use the specified HTTP/HTTPS/SOCKS proxy. To
                                enable SOCKS proxy, specify a proper scheme,
                                e.g. socks5://user:pass@127.0.0.1:1080/.
                                Pass in an empty string (--proxy "") for
                                direct connection
artquest commented 1 year ago

Hi, thank you for the answer, the proxy is from under the hood of Planet VPN Chrome extension. And somehow one of its proxy (but I guess any of them) is working in my other extension, Runet Censorship Bypass. But when I tried to check this proxy in Proxifier, the test failed. Perhaps these proxies only work in browsers. Btw, it's https.