andrewleech / plugin.video.netflixbmc

NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux)
http://forum.kodi.tv/showthread.php?tid=211574
GNU General Public License v2.0
56 stars 29 forks source link

Does not support SNI #25

Open danielcherubini opened 9 years ago

danielcherubini commented 9 years ago

Hey

So according to this https://github.com/dlundquist/sniproxy/issues/153

python < 2.7.9 does not support sni, which is what a few unblockers like mine use to get around geofences..

would it be possible to upgrade python and support sni, or do you want me to do it and issue a pull request

andrewleech commented 9 years ago

We can't upgrade python as such, as it's built into kodi. It basically requires a few python modules and a binary copy of openssl. I think the easiest would be to put local copies of all the required modules (as listed on the stackexchange page) in a folder in the plugin, as well as new enough copy of openssl binary for a few platforms in another folder and put the right folder into the part before importing the modules. I don't really have time for it now, by all means give it a go, hopefully you can find a less hacky way to fix it?

andrewleech commented 9 years ago

Commit 11146992fb adds the first functioning framework to address this issue, and appears to be working fine on my OSX 10.10 development machine. Each platform will need a binary pyOpenSSL python module added, instructions for how to do this are in resources/lib/pyOpenSSL/init.py