[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux)
Fix for profile selection and my list.

Change setProfile to this:
Code:
def setProfile():
    token = addon.getSetting("profile")
    opener.open("http://www.netflix.com/WiHome")
    opener.open("https://api-global.netflix.com/desktop/account/profiles/switch?switchProfileGuid="+token)
    cj.save(cookieFile)

and change chooseProfile to this:

Code:
def chooseProfile():
    content = opener.open("http://www.netflix.com/WiHome").read()
    match = re.compile('"profileName":"(.+?)".+?token":"(.+?)"', re.DOTALL).findall(content)
    profiles = []
    tokens = []
    for p, t in match:
        profiles.append(p)
        tokens.append(t)
    dialog = xbmcgui.Dialog()
    nr = dialog.select(translation(30113), profiles)
    if nr >= 0:
        token = tokens[nr]
        # Profile selection isn't remembered, so it has to be executed before every requests (setProfile)
        # If you know a solution for this, please let me know
        # opener.open("https://api-global.netflix.com/desktop/account/profiles/switch?switchProfileGuid="+token)
        addon.setSetting("profile", token)
        cj.save(cookieFile)

fix for viewing activity:

In def listViewingActivity(type):

change this:
Code:
spl = content.split('<li data-series=')

to this:
Code:
spl = content.split('<li class="retableRow" data-series=')
Reply


Messages In This Thread
Search empty? - by cgrey - 2014-01-11, 06:13
Not working on windows 7 - by dandiodati - 2014-02-26, 21:55
RE: [RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - by -Dis - 2014-11-16, 19:44
Problems with this addon - by builderjer - 2014-11-30, 19:55
Logout Mark Read Team Forum Stats Members Help
[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux)7