Hi Dazed.
Welcome to VoxCommando. A very helpful first post, and much appreciated.
Thanks for the heads-up on this.
So, it seems that the YouTube plugin was improved in this regard. Instead of changing the VoxTools Addon, a much better solution will be to change the command that we use to do YouTube searches on Kodi.
This command does not use VoxTools at all, only the JSON API directly, which is always the better choice if possible.
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.5.1-->
<command id="550" name="search youtube for {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>XJson.Raw</cmdType>
<params>
<param>GUI.ActivateWindow</param>
<param>"window": "videos", "parameters": ["plugin://plugin.video.youtube/kodion/search/query/?q={1}" ]</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.Speak</cmdType>
<params>
<param>searching youtube for {1}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>search youtube</phrase>
<phrase optional="true">for</phrase>
<payloadDictation>payloadDictation: Regular</payloadDictation>
</command>
Big thanks to PegLeg (and possibly others) who turned me on to the fact that we can often use the Kodi log to figure out how to make these calls. Previously, I had always used Kodi's favourites.xml to look for clues, and although that method can work, it does not help for things like searches which cannot be turned into favourites.
Here is the corresponding log entry that I used to figure this one out, after searching with the YouTube plugin for "melons" via the UI:
12:23:18 T:3956 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.youtube/kodion/search/query/?q=melons)
12:23:18 T:3956 DEBUG: ParentPath = [plugin://plugin.video.youtube/kodion/search/list/]
12:23:18 T:7332 DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin YouTube('plugin://plugin.video.youtube/kodion/search/query/','20','?q=melons')
This is in Kodi 15.0-BETA1... Still need to check if it also works in 14.x Helix.