[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 2
(2015-03-11, 17:24)jluce50 Wrote:
(2015-03-11, 16:03)draggy Wrote: I also get a blank choose profile window. Version 1.3.14, language: En-US, location: US, using chrome
I can open the links in chrome and see the profile chooser. I can login to netflix and play things just fine.

Netflix changes appear to have broken this. If you're comfortable, you can replace chooseProfile() in default.py with the following and it will (mostly) work. Note that this is a temporary hack, not a fix, and "Kids Mode" will not be enabled if any of your profiles are setup to use it. You should make a backup copy of default.py first in case you need to revert back.

Code:
def chooseProfile():
    content = load("https://www.netflix.com/ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault")
    match = re.compile('"firstName":"(.+?)".+?guid":"(.+?)"', re.DOTALL).findall(content)
    if not len(match):
        match = re.compile('"decodedName":"(.+?)".+?guid":"(.+?)".+?experience":"(.+?)"', re.DOTALL).findall(content)
    profiles = []
    for p, t in match:
        profile = {'name': p, 'token': t, 'isKids': 'False'}
        profiles.append(profile)
    dialog = xbmcgui.Dialog()
    nr = dialog.select(translation(30113), [profile['name'] for profile in profiles])
    if nr >= 0:
        selectedProfile = profiles[nr]
        load("https://api-global.netflix.com/desktop/account/profiles/switch?switchProfileGuid="+selectedProfile['token'])
        addon.setSetting("profile", selectedProfile['token'])
        addon.setSetting("isKidsProfile", 'true' if selectedProfile['isKids'] else 'false')
        saveState()

This certainly fixed it.

Thanks!

BTW: For those not used to Python, remember that code is indention-sensitive, so careful while copy&pasting.
Reply


Messages In This Thread
Who's Watching is empty? - by RiverBend - 2015-01-08, 18:55
RE: [RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 2 - by sabian2008 - 2015-03-13, 21:07
Full-screen mode - by oakertood - 2015-03-29, 01:08
25% - by Mattlock - 2015-07-06, 03:56
Additional/Original Browser Option? - by durv - 2015-09-07, 05:07
[RELEASE] NetfliXBMC - EMPTY LISTS - by Nibar - 2015-12-08, 03:38
Logout Mark Read Team Forum Stats Members Help
[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 217