2014-12-08, 05:19
Hey, I can reproduce iorify's issue. It looks like any series that I view (any profile > TV > any main category > any TV show > ) shows all the same seasons and then episodes, in my case Breaking Bad (which I have watched on Netflix before but not recently if my account could have anything to do with it). It happens on fresh install, or after clearing any local plugin cache (as well as if I even comment out the caching check in `getSeriesInfo()`.
So even though I selected American Horror Story, it returns a list of 5 seasons, the 5 seasons of Breaking Bad. I noticed that the Id in the URL is `70210884` which is the correct id for American Horror Story (http://www.netflix.com/WiMovie/70210884?trkid=13752289), so I wonder if it's a Netflix issue? I haven't been able to check the actual api call and return values so I haven't been able to look any further into it, sorry.
Unrelated
I am also getting the following error running this on RC2 on OSX, although I did not get any such error running RC2 on Win7. The error appears directly following picking a profile.
I can fix it for myself by changing it to use the `api-us` URL, but that obvisouly isn't really a solution if anyone else gets the error and I'm not sure why I was getting this error on my mac but not in Windows either.
Code:
plugin://plugin.video.netflixbmc/?mode=listSeasons&name=American%20Horror%20Story&thumb=%2fUsers%2f<my_name>%2fLibrary%2fApplication%20Support%2fKodi%2fuserdata%2faddon_data%2fplugin.video.netflixbmc%2fcache%2fcovers%2f70210884.jpg&url=70210884
22:01:12 T:4445442048 INFO: CPythonInvoker(44, /Users/{}/Library/Application Support/Kodi/addons/plugin.video.netflixbmc/default.py): script successfully run
22:01:12 T:140735163757328 DEBUG: -- items: 5, sort method: 0, ascending: false
Unrelated
I am also getting the following error running this on RC2 on OSX, although I did not get any such error running RC2 on Win7. The error appears directly following picking a profile.
Code:
21:50:28 T:4639657984 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'requests.exceptions.SSLError'>
Error Contents: hostname 'api-global.netflix.com' doesn't match u'api-us.netflix.com'
Traceback (most recent call last):
File "/Users/{}/Library/Application Support/Kodi/addons/plugin.video.netflixbmc/default.py", line 1064, in <module>
index()
File "/Users/{}/Library/Application Support/Kodi/addons/plugin.video.netflixbmc/default.py", line 154, in index
if login():
File "/Users/{}/Library/Application Support/Kodi/addons/plugin.video.netflixbmc/default.py", line 701, in login
chooseProfile()
File "/Users/{}/Library/Application Support/Kodi/addons/plugin.video.netflixbmc/default.py", line 724, in chooseProfile
load("https://api-global.netflix.com/desktop/account/profiles/switch?switchProfileGuid="+token)
File "/Users/{}/Library/Application Support/Kodi/addons/plugin.video.netflixbmc/default.py", line 97, in load
r = session.get(url).text
File "/Users/{}/Library/Application Support/Kodi/addons/script.module.requests/lib/requests/sessions.py", line 469, in get
return self.request('GET', url, **kwargs)
File "/Users/{}/Library/Application Support/Kodi/addons/script.module.requests/lib/requests/sessions.py", line 457, in request
resp = self.send(prep, **send_kwargs)
File "/Users/{}/Library/Application Support/Kodi/addons/script.module.requests/lib/requests/sessions.py", line 569, in send
r = adapter.send(request, **kwargs)
File "/Users/{}/Library/Application Support/Kodi/addons/script.module.requests/lib/requests/adapters.py", line 420, in send
raise SSLError(e, request=request)
SSLError: hostname 'api-global.netflix.com' doesn't match u'api-us.netflix.com'