2014-11-16, 18:42
(2014-11-16, 12:50)-Dis Wrote: Fix for who's watching.
Replace:
Code:match = re.compile('"profileName":"(.+?)".+?token":"(.+?)"', re.DOTALL).findall(content)
to this:
Code:match = re.compile('"firstName":"(.+?)".+?guid":"(.+?)"', re.DOTALL).findall(content)
-Dis
You're right on that fixed my problem with Who's Watching?
However the mylist causes script errors.
It looks like the setting of profile might be reliant on the global api which appears to have been shutdown to developers on Nov 14
def setProfile():
token = addon.getSetting("firtsName")
opener.open("https://www.netflix.com/ProfilesGate?nextpage=http%3A%2F%2Fwww.netflix.com%2FDefault")
opener.open("https://api-global.netflix.com/desktop/account/profiles/switch?switchProfileGuid="+token)
cj.save(cookieFile)