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

YouTube addon don't use Kodi's proxy #795

Open
xmha97 opened this issue Apr 22, 2020 · 2 comments
Open

YouTube addon don't use Kodi's proxy #795

xmha97 opened this issue Apr 22, 2020 · 2 comments

Comments

@xmha97
Copy link

xmha97 commented Apr 22, 2020

Hello,
Please see this issue:
xbmc/xbmc#17729

@doko-desuka
Copy link
Contributor

Some notes, if someone wants to tackle this:

@hak0
Copy link

hak0 commented Mar 17, 2024

Thanks for the solution provided by doko-desuka!
On my current version 7.0.3.2+matrix+1, seems like the request is abstracted into resources/lib/youtube_plugin/kodion/network/requests.py, in function def request(self,url, method='GET', ...)

        if verify is None:
            verify = self._verify
        if allow_redirects is None:
            allow_redirects = True

        # add my hard-coded proxy settings here
        proxies = {
          'http': 'http://192.168.1.7:10809',
          'https': 'http://192.168.1.7:10809',
        }
        response = None
        try:
            response = self._session.request(method, url,
                                             params=params,
                                             data=data,
                                             headers=headers,
                                             cookies=cookies,
                                             files=files,
                                             auth=auth,
                                             timeout=timeout,
                                             allow_redirects=allow_redirects,
                                             proxies=proxies,
                                             hooks=hooks,
                                             stream=stream,
                                             verify=verify,
                                             cert=cert,
                                             json=json)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants