Hi,
My YouTube add-on has stopped working, throwing an error "YouTube error: check the log for more information" when I try to search for something.
I have manually added my own API keys (youtube.api.key, youtube.api.id, and youtube.api.secret) to the settings.xml in /storage/.kodi/userdata/addon_data/plugin.video.youtube/.
This is the error message (ssh from raspberry pi4) from the kodi.log.
Code
2024-08-30 21:06:39.225 T:1006 INFO <general>: CActiveAESink::OpenSink - initialize sink
2024-08-30 21:06:39.225 T:1006 INFO <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=vc4hdmi0,DEV=0"
2024-08-30 21:06:39.233 T:1006 INFO <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=vc4hdmi0,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x00"
2024-08-30 21:06:39.236 T:1006 INFO <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2024-08-30 21:06:39.236 T:1006 INFO <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE3
2024-08-30 21:06:39.236 T:3145 INFO <general>: initializing python engine.
2024-08-30 21:06:39.241 T:3145 INFO <general>: [plugin.video.youtube] Running: YouTube (7.0.9.1) on Matrix (Kodi-19.5) with Python 3.8.9
Path: /kodion/search/query/
Params: {'category_label': 'war bloods', 'q': 'war bloods'}
2024-08-30 21:06:39.473 T:3145 ERROR <general>: EXCEPTION: When using "artist" you need to supply a list of strings for the value in the dictionary
2024-08-30 21:06:39.476 T:3145 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TypeError'>
Error Contents: When using "artist" you need to supply a list of strings for the value in the dictionary
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/plugin.py", line 16, in <module>
plugin_runner.run()
File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/plugin_runner.py", line 62, in run
plugin.run(provider, context, focused=(current_uri == new_uri))
File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/plugin/xbmc/xbmc_plugin.py", line 172, in run
items = [
File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/plugin/xbmc/xbmc_plugin.py", line 173, in <listcomp>
self._LIST_ITEM_MAP[item.__class__.__name__](
File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/items/xbmc/xbmc_items.py", line 713, in media_listitem
set_info(list_item,
File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/items/xbmc/xbmc_items.py", line 175, in set_info
list_item.setInfo(info_type, info_labels)
TypeError: When using "artist" you need to supply a list of strings for the value in the dictionary
-->End of Python script error report<--
2024-08-30 21:06:39.864 T:3145 INFO <general>: Python interpreter stopped
2024-08-30 21:06:39.880 T:3168 INFO <general>: Skipped 2 duplicate messages..
2024-08-30 21:06:39.880 T:3168 ERROR <general>: GetDirectory - Error getting plugin://plugin.video.youtube/kodion/search/query/?category_label=war%20bloods&q=war%20bloods
2024-08-30 21:06:39.891 T:1000 ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/kodion/search/query/?category_label=war%20bloods&q=war%20bloods) failed
2024-08-30 21:06:39.893 T:3174 INFO <general>: initializing python engine.
2024-08-30 21:06:40.692 T:3174 INFO <general>: [plugin.video.youtube] Running: YouTube (7.0.9.1) on Matrix (Kodi-19.5) with Python 3.8.9
Path: /kodion/search/list/
Params: {'category_label': 'Search'}
2024-08-30 21:06:40.701 T:3174 ERROR <CSettingInt>: error reading <control> tag of "youtube.view.label.color.viewCount"
2024-08-30 21:06:40.701 T:3174 WARNING <CSettingGroup>: unable to read setting "youtube.view.label.color.viewCount"
2024-08-30 21:06:40.701 T:3174 ERROR <CSettingInt>: error reading <control> tag of "youtube.view.label.color.likeCount"
2024-08-30 21:06:40.701 T:3174 WARNING <CSettingGroup>: unable to read setting "youtube.view.label.color.likeCount"
2024-08-30 21:06:40.701 T:3174 ERROR <CSettingInt>: error reading <control> tag of "youtube.view.label.color.commentCount"
2024-08-30 21:06:40.701 T:3174 WARNING <CSettingGroup>: unable to read setting "youtube.view.label.color.commentCount"
2024-08-30 21:06:40.712 T:3174 INFO <general>: CPythonInvoker(32, /storage/.kodi/addons/plugin.video.youtube/resources/lib/plugin.py): script successfully run
Display More
All help is gratefully received.
Thanks!
A.