maxbambi / plugin.video.raitv

Kodi plugin for RAI
GNU General Public License v3.0
35 stars 9 forks source link

Python error selecting "Dirette TV" #70

Closed ducarpit closed 1 year ago

ducarpit commented 1 year ago

Hi, i got this Python error in the kodi.log when i click on Dirette TV:

2023-07-26 14:28:15.087 T:12933   error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'UnboundLocalError'>
                                                   Error Contents: local variable 'thumb' referenced before assignment
                                                   Traceback (most recent call last):
                                                     File "/home/osmc/.kodi/addons/plugin.video.raitv/default.py", line 790, in <module>
                                                       show_tv_channels()
                                                     File "/home/osmc/.kodi/addons/plugin.video.raitv/default.py", line 221, in show_tv_channels
                                                       if thumb:
                                                   UnboundLocalError: local variable 'thumb' referenced before assignment
                                                   -->End of Python script error report<--

Is there a way to solve? Thanks a lot Christian

maxbambi commented 1 year ago

@ducarpit your version of kodi?

ducarpit commented 1 year ago

@maxbambi Kodi v20

maxbambi commented 1 year ago

@ducarpit your version of plugin? try to download last version from here https://github.com/maxbambi/plugin.video.raitv/archive/matrix.zip

ducarpit commented 1 year ago

@maxbambi my RaiPlay addon version is 3.8.1

maxbambi commented 1 year ago

@maxbambi my RaiPlay addon version is 3.8.1

ok... you need an updated version of plugin... use zip installation I've made a pull request to update official repository, but it is still waiting...

ducarpit commented 1 year ago

Yes, i tried your updated addon and now...it works! Thank you so much for your helpfulness :) I was going to ask you why this version was not on the official repository yey, but you already answered... Thank you Max!

Christian