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

Add full proxy support #87

Merged
merged 6 commits into from
Mar 23, 2019
Merged

Add full proxy support #87

merged 6 commits into from
Mar 23, 2019

Conversation

dagwieers
Copy link
Collaborator

@dagwieers dagwieers commented Mar 22, 2019

This PR gets the Kodi global proxy settings and then applies those to
all invocations of requests.

This PR also prefixes log messages using [plugin.video.vrt.nu] so it is clear where log messages are coming from.

This is the first implementation that adds full proxy support.

In the future I would like to add 2 additional features so that users
can select between:

  • Use Kodi proxy settings (default)
  • Disable proxy support for this addon
  • Custom proxy settings (for this addon)

The current PR implements the first (default) option.

This PR gets the Kodi global proxy settings and then applies those to
all invocations of requests.

This is the first implementation that adds full proxy support.

In the future I would like to add 2 additional features so that users
can select between:

- Use Kodi proxy settings (default)
- Disable proxy support for this addon
- Custom proxy settings (for this addon)

The current PR implements the first (default) option.
@dagwieers dagwieers requested a review from pietje666 March 22, 2019 17:18
@dagwieers
Copy link
Collaborator Author

@mediaminister @pietje666 Please review!

PS I updated the wiki page with ideas, feedback welcome.

@dagwieers
Copy link
Collaborator Author

While testing (easiest is to remove your default gateway when the proxy is in your local network) I discovered that streaminputhelper is not proxy-aware either. So DRM-enable content (i.e. live streams) fail to work because No route to host when contacting dl.google.com.

But our addon at least is using the proxy fully.

SOCKS proxy support requires the requests[socks] library which is
currently unavailable on standard Kodi repositories.
Copy link
Collaborator

@pietje666 pietje666 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@dagwieers dagwieers merged commit c92aaf7 into add-ons:master Mar 23, 2019
@dagwieers dagwieers added the enhancement New feature or request label Mar 26, 2019
@dagwieers dagwieers added this to the v1.7.0 milestone May 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants