Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
youtube-dl fails to use proxy #293
Comments
|
Seems like this could be a bug in
|
|
As per the documentation, try to put the "http://" prefix before the host name. |
|
Mmm, urllib2 seems ok with leaving out the |
|
I just peeked at the code in urllib2 and you're completely right. It should go even as far back as Python 2.5. However, I distinctly remember having problems if I omitted the http:// prefix when I tested the feature after adding it. Could it be a subtle problem in youtube-dl's code? It could still be interesting to test with the prefix just in case. |
|
Same with 2012.02.27 (running on Gentoo Linux / AMD64). The script from comment #1 hangs (which tells me that it does not respect the http_proxy env var) |
|
youtube-dl --version: uname -a; http_proxy="http://72.64.146.135:8080" youtube-dl www.youtube.com/watch?v=mjli3hj0ZkM Works like a charm! |
|
AR0x7E7, could you try without the http:// prefix to verify it still works or if it makes any difference? |
|
http_proxy="72.64.146.135:8080" youtube-dl http://www.youtube.com/watch?v=sOS9aOIXPEk Still works perfectly! Btw: |
$ http_proxy="127.0.0.1:3128" youtube-dl http://www.youtube.com/watch?v=z4KV7e8kwbI
[youtube] Setting language
WARNING: unable to set language: <urlopen error [Errno 111] Connection refused>
[youtube] z4KV7e8kwbI: Downloading video webpage
ERROR: unable to download video webpage: <urlopen error [Errno 111] Connection refused>
--> of course it doesn't work if you don't use the proxy server ...