mintsoft / kodi.plugin.ytchannels

kodi.plugin.ytchannels
GNU General Public License v3.0
5 stars 8 forks source link

Playlists for some channels blow up #38

Closed mintsoft closed 9 months ago

mintsoft commented 9 months ago

For exanple: Barry Lewis, playlists:

2023-09-11 19:32:46.608 T:2104    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'KeyError'>
                                                   Error Contents: 'high'
                                                   Traceback (most recent call last):
                                                     File "/home/rob/.kodi/addons/plugin.video.ytchannels/default.py", line 4, in <module>
                                                       ytchannels_main()
                                                     File "/home/rob/.kodi/addons/plugin.video.ytchannels/resources/lib/ytchannels.py", line 281, in ytchannels_main
                                                       playlists=get_playlists(channel_id,page)
                                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/home/rob/.kodi/addons/plugin.video.ytchannels/resources/lib/functions.py", line 454, in get_playlists
                                                       thumb = decoded_data['items'][i]['snippet']['thumbnails']['high']['url']
                                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
                                                   KeyError: 'high'
                                                   -->End of Python script error report<--