-
-
Notifications
You must be signed in to change notification settings - Fork 217
Add socks to settings #1592
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
Add socks to settings #1592
Conversation
2a9d3ed to
ad69160
Compare
0ac05d3 to
9d39b70
Compare
And add the ui and glue code to set a proxy in that tab
The base config class has an observer facility. Using that we can define an observer inside a closure containing a reference to the UIConfig instance the application is using. And the observer will update the global gpodder.config._proxies variable that various network calls check to get the desired proxies.
9d39b70 to
6a49297
Compare
auouymous
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gpo crashes with this patch installed.
- youtube-dl should use the proxy settings (it's a separate plugin with a settings menu of its own)
The proxy prefs are in gpodder, any extension capable of using the proxy prefs should use it.
https://stackoverflow.com/questions/46389519/how-to-embed-socks5-proxy-in-youtube-dls-python-code
|
Thank you for the feedback. I'll fix them and investigate the crash |
auouymous
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gpo doesn't initialize the _proxies variable. Adding the following to the end of gPodderCli init seems to work.
observer = gpodder.config.get_network_proxy_observer(self._config)
self._config.add_observer(observer)
# Trigger the global gpodder.config._proxies observer contraption to initialize it.
observer("network.", None, None)
|
Thank you for implementing this. |
Original PR #1592 by masoudd Original: gpodder/gpodder#1592
Merged from original PR #1592 Original: gpodder/gpodder#1592
Current UI:

Please let me know if anything needs to change.