emilsvennesson / kodi-viaplay

Viaplay for Kodi
GNU General Public License v3.0
30 stars 19 forks source link

Unable to display Films entries #46

Open woj76 opened 3 years ago

woj76 commented 3 years ago

Since couple of months (should have reported this earlier), I cannot enter "Filmer" in the plug-in, the plug-in crashes with an error. All other entries work, can be displayed and videos played. I am not entirely sure if the source of the problem is in the ViaPlay API, or in the Kodi libraries (I run Kodi 9.2.7 on RaspberryPI 3), in any case, the error message from the log is this:

`2021-06-25 22:09:55.886 T:1476391680 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

zuzia-dev commented 3 years ago

Norwegian version:

2021-08-07 16:22:15.241 T:140618528614144   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: '_links'
                                            Traceback (most recent call last):
                                              File "/home/zuzia/.kodi/addons/plugin.video.viaplay/default.py", line 5, in <module>
                                                addon.run()
                                              File "/home/zuzia/.kodi/addons/plugin.video.viaplay/resources/lib/addon.py", line 22, in run
                                                plugin.run()
                                              File "/home/zuzia/.kodi/addons/script.module.routing/lib/routing.py", line 130, in run
                                                self._dispatch(self.path)
                                              File "/home/zuzia/.kodi/addons/script.module.routing/lib/routing.py", line 141, in _dispatch
                                                view_func(**kwargs)
                                              File "/home/zuzia/.kodi/addons/plugin.video.viaplay/resources/lib/addon.py", line 99, in vod
                                                helper.add_item(i['title'], plugin.url_for(list_products, url=i['_links']['self']['href']))
                                            KeyError: '_links'
                                            -->End of Python script error report<--
2021-08-07 16:22:15.601 T:140618546542336   ERROR: GetDirectory - Error getting plugin://plugin.video.viaplay/vod?url=https%3a%2f%2fcontent.viaplay.no%2fxdk-no%2ffilmer
2021-08-07 16:22:15.628 T:140619269698304   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.viaplay/vod?url=https%3a%2f%2fcontent.viaplay.no%2fxdk-no%2ffilmer) failed
Mariusz89B commented 3 years ago

Here is a fix for this issue, https://github.com/Mariusz89B/kodi-viaplay/releases/

zuzia-dev commented 3 years ago

It works just fine via Kodi 18.9. Well done, @Mariusz89B, you are great :)

woj76 commented 3 years ago

Brief check indicates it works for me too, thanks! BTW, it seems Emil has vanished?...

Leatherface75 commented 3 years ago

Brief check indicates it works for me too, thanks! BTW, it seems Emil has vanished?...

I think he is too busy right now.

Mariusz89B commented 3 years ago

@woj76 @Leatherface75 https://github.com/emilsvennesson/kodi-viaplay/pull/50#issuecomment-896712043