a4k-openproject / script.extendedinfo

GNU General Public License v3.0
6 stars 2 forks source link

[Bug] exception in YouTube.py #22

Closed fugkco closed 3 years ago

fugkco commented 4 years ago

Describe the bug Not really sure what I did for this to come up but I just checked my kodi logs to see why going into the download subtitles menu caused a crash, and stumbled upon the following stack trace:

2020-01-15 07:37:25.825 T:27367   ERROR: Exception in thread Thread-3:
                                            Traceback (most recent call last):
                                              File "/home/jenkins/workspace/Android-ARM-Leia/tools/depends/xbmc-depends/arm-linux-androideabi-21-release/lib/python2.7/threading.py", line 801, in __bootstrap_inner
                                              File "/home/jenkins/workspace/Android-ARM-Leia/tools/depends/xbmc-depends/arm-linux-androideabi-21-release/lib/python2.7/threading.py", line 754, in run
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.extendedinfo/resources/lib/DialogBaseInfo.py", line 116, in get_youtube_vids
                                                result = YouTube.search_youtube(search_str, limit=10)
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.extendedinfo/resources/lib/YouTube.py", line 78, in search_youtube
                                                videos = handle_youtube_videos(results['items'], extended=extended)
                                            KeyError: 'items'

Seems to have happened multiple times. From the UI nothing seems to be wrong but figured I'd tell you guys.

Platform