2015-08-22, 10:28
Getting this log message when trying to play certain music videos. Suspect some change to YouTube website has borked plugin:
Does anyone have a workaround? I was thinking of just modifying the code to ignore a missing "title" attribute for now until an update is released. Don't know if other keys are missing.
Code:
09:26:45 T:1516217376 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: 'title'
Traceback (most recent call last):
File "/home/osmc/.kodi/addons/plugin.video.youtube-master/default.py", line 7, in <module>
runner.run(__provider__)
File "/home/osmc/.kodi/addons/plugin.video.youtube-master/resources/lib/kodion/runner.py", line 32, in run
__RUNNER__.run(provider, context)
File "/home/osmc/.kodi/addons/plugin.video.youtube-master/resources/lib/kodion/impl/xbmc/xbmc_runner.py", line 23, in run
results = provider.navigate(context)
File "/home/osmc/.kodi/addons/plugin.video.youtube-master/resources/lib/kodion/abstract_provider.py", line 123, in navigate
result = method(context, re_match)
File "/home/osmc/.kodi/addons/plugin.video.youtube-master/resources/lib/kodion/register_provider_path.py", line 12, in wrapper
return func(*args, **kwargs)
File "/home/osmc/.kodi/addons/plugin.video.youtube-master/resources/lib/youtube/provider.py", line 363, in on_play
return yt_play.play_video(self, context, re_match)
File "/home/osmc/.kodi/addons/plugin.video.youtube-master/resources/lib/youtube/helper/yt_play.py", line 17, in play_video
video_streams = client.get_video_streams(context, video_id)
File "/home/osmc/.kodi/addons/plugin.video.youtube-master/resources/lib/youtube/client/youtube.py", line 85, in get_video_streams
video_stream['title'], video_stream['container'], video_stream['video']['encoding'],
KeyError: 'title'
-->End of Python script error report<--
09:26:45 T:1956827136 DEBUG: ------ Window Init (DialogKaiToast.xml) ------p
Does anyone have a workaround? I was thinking of just modifying the code to ignore a missing "title" attribute for now until an update is released. Don't know if other keys are missing.