jsergio123 / script.module.resolveurl

Fork of the UrlResolver from tknorris
GNU General Public License v2.0
111 stars 97 forks source link

Net file #467

Closed thecrewwh closed 3 years ago

thecrewwh commented 3 years ago

By adding this it is breaking calling of sites that require 1_2 or above in Kodi 18

elif six.PY2 or 'android' in kodi.py_ver.lower():
    try:
        import ssl
        ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1_1)
        if self._http_debug:
            handlers += [urllib_request.HTTPSHandler(context=ctx, debuglevel=1)]
        else:
            handlers += [urllib_request.HTTPSHandler(context=ctx)]
    except:
        pass
Gujal00 commented 3 years ago

Can you please let me know which site is affected. This fix was implemented so that lot of streamers behind cloudflaressl that use cloudflare cert dont work with TLS1.2 in Kodi18 and on Android on Kodi 19

thecrewwh commented 3 years ago

Gitlab is affected it requires 1.2 or above to request anything hosted there

classymouse commented 3 years ago

there are more, bitbucket also requires 1.2 as of dec. '18

Gujal00 commented 3 years ago

@thecrewwh @classymouse Can you test with the attached net.py and let me know if it fixes the issue for you. I will work on a general release once you confirm.

net.zip

thecrewwh commented 3 years ago

Yes this works perfectly thank you

classymouse commented 3 years ago

Working, Thank you Gujal ;)