Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy support #13

Open
rubikonx9 opened this issue Dec 10, 2018 · 5 comments
Open

Proxy support #13

rubikonx9 opened this issue Dec 10, 2018 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@rubikonx9
Copy link

rubikonx9 commented Dec 10, 2018

I'm behind corporate proxy.
I don't use any Proxy Authentication.

Attempt to download either audio or video results in an error being displayed:

ERROR: Unable to download webpage: <urlopen error Tunnel connection failed: 407 Proxy Authentication Required> (caused by URLError(OSError('Tunnel connection failed: 407 Proxy Authentication Required')))

The youtube itself - via web browser - works just fine.

--EDIT
I was able to make it work by adding the arguments to youtube-dl call:
"--proxy", "socks5://<my_proxy_address>:<my_proxy_port>/"
in the extension.js file.

So the issue is actually about adding a configuration option.

@konkor
Copy link
Owner

konkor commented Dec 10, 2018

@rubikonx9 thank you for your report!

I can make a system proxy support. Can you dump your proxy system setting? Just change in a text editor dumped settings like username and password if you have it to protect your privacy!

dconf dump /org/gnome/system/proxy/ > proxy_settings

Please consider to support the author's desktop projects and make donation Thank you!

@konkor konkor added enhancement New feature or request help wanted Extra attention is needed labels Dec 10, 2018
@rubikonx9
Copy link
Author

This dconf setting is empty for me. We're using an Automatic configuration script. I don't really know how that propagates in Gnome.

@konkor
Copy link
Owner

konkor commented Dec 10, 2018

@rubikonx9 It's easy to do. Go to System Settings -> Network -> Proxy Settings Probably, it's just configured in Gnome or just environment variable in the bash profile or nothing lol

Actually, I don't really want to make for the extension all kinds of Proxy Settings inside small extension. Also network is using for youtube-dl local updates via soup session, which needs proxy settings too.

You can change the system proxy any time if you have permissions to do it. So you can change all values in the settings to hide all if you want it, I don't care about values.

So you could open that address in dconf-editor


Please consider to support the author's desktop projects and make donation Thank you!

@rubikonx9
Copy link
Author

Oh, I do use the Gnome's GUI settings. But they are not reflected in the dconf settings, at least at the location suggested by you.

1

2

I also have $http_proxy and $https_proxy environment variables set.

@konkor
Copy link
Owner

konkor commented Dec 11, 2018

@rubikonx9 Okay. I'll make just single entry for all proxy settings like scheme://user:password@proxy_address:port for now. So i should make fallback mode for ydl package when the extension is unable to update/install itself.


Please consider to support the author's desktop projects and make donation Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants