Posts: 89
Joined: Apr 2011
Reputation:
0
Your idea itself is just fine, yet this would be problematic given that I am not aware of any way to call the SendClick built-in function using the JSON-RPC API (this would be needed to simulate pressing the Search option in the sidebar directly, i.e. without moving the cursor appropriately and then selecting the current item).
Posts: 6
Joined: Sep 2015
Reputation:
0
is it possible to use RunScript(script[,args]*) to perhaps run a background python script that will accomplish this?
Posts: 89
Joined: Apr 2011
Reputation:
0
Well, it's definitely implementable, but it would break the way kodivc is currently operating (listen to a command, make a JSON-RPC request, repeat; possibly with multiple commands in a single batch), because an extra JSON-RPC query-response pair would be required to actually perform the SEARCH voice command (note that I haven't actually tested that this would work at all, I just skimmed through the docs). And if you think about it, this method still requires you to open the context menu first. And once it's open, one can simply say UP TWO SELECT or DOWN FIVE SELECT - it's not like the Search item keeps randomly floating around all over the place.
All that's needed to implement this feature in a clean manner is to have a JSON-RPC method which allows activating arbitrary elements of the interface. Sadly, Kodi currently lacks it AFAIK.
Posts: 76
Joined: Jan 2015
Reputation:
3
I am kind of jumping on the end of this conversation with no real knowlage but could you use the JSON-RPC API to go to the search result page with the argument for the query? Assuming thats how the search results are queried. As an alternative maybe call a search plugin which you could pass an argument to.
Just thoughts. Maybe useless. I will be giving this plugin a try though.