asciidisco / plugin.video.netflix

Inputstream based Netflix plugin for Kodi
MIT License
1.24k stars 226 forks source link

Getting exception: KeyError #731

Open jclsn opened 4 years ago

jclsn commented 4 years ago

Yesterday it was still working. Now I get this error. Am I the only one?

citronalco commented 4 years ago

Same here. Plugin fails when selecting the user profile.

2020-06-18 09:57:35.923 T:2832196320   ERROR: [plugin.video.netflix (0)] Could not extract [u'models', u'truths', u'data', u'isLocoSupported']
2020-06-18 09:57:36.000 T:2832196320   ERROR: [plugin.video.netflix (0)] IPC callback raised exception: u'lolomo'
2020-06-18 09:57:36.001 T:2832196320   ERROR: [plugin.video.netflix (0)] Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/common/ipc.py", line 185, in make_return_call
                                                result = call(instance, func, data)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/common/ipc.py", line 208, in call
                                                return func(instance, data)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/nfsession_base.py", line 37, in ensure_login
                                                return func(*args, **kwargs)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/nfsession.py", line 95, in activate_profile
                                                self._activate_profile(guid, ignore_update_lolomo_data)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/services/nfsession/nfsession.py", line 119, in _activate_profile
                                                self.auth_url = website.extract_session_data(response)['auth_url']
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/common/logging.py", line 143, in timing_wrapper
                                                return func(*args, **kwargs)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/api/website.py", line 124, in extract_session_data
                                                lolomo_root = falcor_cache['lolomo']['value'][1]
                                            KeyError: u'lolomo'
2020-06-18 09:57:36.066 T:2449466080   ERROR: [plugin.video.netflix (102)] IPC call activate_profile returned KeyError: u'lolomo'
2020-06-18 09:57:36.072 T:2449466080   ERROR: [plugin.video.netflix (102)] Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 207, in run
                                                route([part for part in g.PATH.split('/') if part])
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 38, in lazy_login_wrapper
                                                return func(*args, **kwargs)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 72, in route
                                                _execute(nav_handler, pathitems[1:], g.REQUEST_PARAMS)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/run_addon.py", line 100, in _execute
                                                executor(pathitems=pathitems)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/common/logging.py", line 143, in timing_wrapper
                                                return func(*args, **kwargs)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/navigation/directory_utils.py", line 34, in set_custom_viewmode
                                                override_partial_setting_id = func(*args, **kwargs)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/navigation/directory.py", line 93, in home
                                                if not activate_profile(self.params['switch_profile_guid']):
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/navigation/directory_utils.py", line 148, in activate_profile
                                                common.make_call('activate_profile', guid)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/common/logging.py", line 143, in timing_wrapper
                                                return func(*args, **kwargs)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/common/ipc.py", line 89, in make_call
                                                return make_addonsignals_call(callname, data)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/common/ipc.py", line 162, in make_addonsignals_call
                                                _raise_for_error(callname, result)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/common/ipc.py", line 175, in _raise_for_error
                                                raise Exception(result['error'])
                                            Exception: KeyError
jclsn commented 4 years ago

It seems to be an issue for everyone. It is all over the Kodi Forum. Hoping for a fix soon!

saba1970 commented 4 years ago

I have the same issue after updating the Netflix addon.

fonziemedia commented 4 years ago

Same issue here

phisch92 commented 4 years ago

Same issue here

kurt636 commented 4 years ago

Anyone knows how to fix this?

jclsn commented 4 years ago

I am assuming Netflix has changed something with the API key and the Kodi plugin has to be changed accordingly. There is a thread in the Kodi forum about this which is 1-2 years old, so I guess this happens on a regular basis. We just have to wait. It might be good if users could change this API key themselves in the settings, but I have no idea whether that is possible or not. For me it is good. Im in the examination phase and Prison Break is just too addictive xD

phisch92 commented 4 years ago

I tried:

jclsn commented 4 years ago

Here is the reason: https://forum.kodi.tv/showthread.php?tid=329767&pid=2958081#pid2958081

It seems that Netflix has changed it's website layout and remember that this plugin is just a web scraper, that fetches the links from the website via BeautifulSoup probably. As soon as the website changes, the code has to be adjusted. It also seems that this Github page is just a fork. The developer is already working on it. Here is a link to the fix that might still work for some countries

https://github.com/CastagnaIT/plugin.video.netflix/issues/701#issuecomment-645910348

kurt636 commented 4 years ago

It's working for me...