Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to display Films entries #46

Open
woj76 opened this issue Jun 26, 2021 · 6 comments
Open

Unable to display Films entries #46

woj76 opened this issue Jun 26, 2021 · 6 comments

Comments

@woj76
Copy link

woj76 commented Jun 26, 2021

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<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.KeyError'> Error Contents: '_links' Traceback (most recent call last): File "/storage/.kodi/addons/plugin.video.viaplay/default.py", line 5, in <module> addon.run() File "/storage/.kodi/addons/plugin.video.viaplay/resources/lib/addon.py", line 21, in run plugin.run() File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 130, in run self._dispatch(self.path) File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 141, in _dispatch view_func(**kwargs) File "/storage/.kodi/addons/plugin.video.viaplay/resources/lib/addon.py", line 78, 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-06-25 22:09:56.244 T:1509962496 ERROR: GetDirectory - Error getting plugin://plugin.video.viaplay/vod?url=https%3a%2f%2fcontent.viaplay.se%2fxdk-se%2ffilm 2021-06-25 22:09:56.246 T:1937128896 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.viaplay/vod?url=https%3a%2f%2fcontent.viaplay.se%2fxdk-se%2ffilm) failed
I googled all I can and also tried to debug this a bit myself (don't really have an environment to do it properly), but no luck so far.

@zuzia-dev
Copy link

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
Copy link

Mariusz89B commented Aug 7, 2021

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

@zuzia-dev
Copy link

zuzia-dev commented Aug 7, 2021

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

@woj76
Copy link
Author

woj76 commented Aug 8, 2021

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

@Leatherface75
Copy link

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

I think he is too busy right now.

@Mariusz89B
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants