emilsvennesson / kodi-viaplay

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

Problems on Kodi 20.4 #57

Open CHJ85 opened 5 months ago

CHJ85 commented 5 months ago

Hi. I'm running Kodi 20.4, The plugin is no longer working. I'm using the Norwegian version of Viaplay btw. The "Kanaler" category including the live channels and previously recorded programming work just fine. However, the other categories do not work.

                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'TypeError'>
                                                   Error Contents: byte indices must be integers or slices, not str
                                                   Traceback (most recent call last):
                                                     File "/home/chris/.var/app/tv.kodi.Kodi/data/addons/plugin.video.viaplay/default.py", line 5, in <module>
                                                       addon.run()
                                                     File "/home/chris/.var/app/tv.kodi.Kodi/data/addons/plugin.video.viaplay/resources/lib/addon.py", line 22, in run
                                                       plugin.run()
                                                     File "/home/chris/.var/app/tv.kodi.Kodi/data/addons/script.module.routing/lib/routing.py", line 130, in run
                                                       self._dispatch(self.path)
                                                     File "/home/chris/.var/app/tv.kodi.Kodi/data/addons/script.module.routing/lib/routing.py", line 141, in _dispatch
                                                       view_func(**kwargs)
                                                     File "/home/chris/.var/app/tv.kodi.Kodi/data/addons/plugin.video.viaplay/resources/lib/addon.py", line 74, in search
                                                       list_products(plugin.args['url'][0], search_query=query)
                                                     File "/home/chris/.var/app/tv.kodi.Kodi/data/addons/plugin.video.viaplay/resources/lib/addon.py", line 145, in list_products
                                                       products_dict = helper.vp.get_products(url, search_query=search_query)
                                                     File "/home/chris/.var/app/tv.kodi.Kodi/data/addons/plugin.video.viaplay/resources/lib/viaplay.py", line 213, in get_products
                                                       if 'list' in data['type'].lower():
                                                   TypeError: byte indices must be integers or slices, not str
                                                   -->End of Python script error report<--

EDIT! However, this fork does work: https://github.com/Mariusz89B/plugin.video.viaplay