How to search via API? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228) +---- Thread: How to search via API? (/showthread.php?tid=353455) |
How to search via API? - danielquinn - 2020-04-13 I'm working on extension for Mycroft (voice-activated AI) and I'd like for it to do something that sounds simple:
If Kodi were running on the same machine, I'd just open up Sqlite directly, but since it's running on an Android box in another room, using an API seems like the responsible choice. I just can't for the life of me figure out how to do this and why it seems so very difficult. Any pointers (or Python code samples!) would be really appreciated. The result of this project will be Freely licensed, so you can even play with the results when I'm ready to show & tell :-) RE: How to search via API? - danielquinn - 2020-04-13 Well I appear to have figured it out by way of discovering this StackOverflow question that pointed me to a rough idea of what the syntax looked like, along with a whole lot of trial & error while looking at the machine-generated documentation. If someone comes looking for answers one day and finds this, I hope it helps. The answer for me was in two separate calls: one to search for the show based on my query, and another to get a list of episodes for that show, filtering for "playcount":
|