dandygithub / kodi

KODI Addons Project
GNU General Public License v3.0
77 stars 49 forks source link

Fix hdrezka play episode missing links #92

Closed mrchnk closed 9 months ago

mrchnk commented 9 months ago

Fix exception on episode play (empty data value)

2024-01-18 23:37:31.456 T:1559503744   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.IndexError'>
                                            Error Contents: list index out of range
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.hdrezka.tv/default.py", line 435, in <module>
                                                plugin.main()
                                              File "/storage/.kodi/addons/plugin.video.hdrezka.tv/default.py", line 70, in main
                                                urllib.unquote_plus(params['data'])
                                              File "/storage/.kodi/addons/plugin.video.hdrezka.tv/default.py", line 424, in play_episode
                                                links = self.get_links(self.decode_response(data))
                                              File "/storage/.kodi/addons/plugin.video.hdrezka.tv/default.py", line 307, in get_links
                                                manifest_links[int(link.split("]")[0].replace("[", "").replace("p", ""))] = link.split("]")[1]
                                            IndexError: list index out of range
                                            -->End of Python script error report<--