konkor / you2ber

Gnome youtube-dl frontend
GNU General Public License v3.0
30 stars 4 forks source link

Proxy support #13

Open rubikonx9 opened 5 years ago

rubikonx9 commented 5 years ago

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 commented 5 years ago

@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!

rubikonx9 commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

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 commented 5 years ago

@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!