2020-04-13, 18:21
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 :-)
- Search through my (remote) Kodi db for <keyword>
- Return any data that db has for the results (ideally the URL for the file, whether it's been watched or not, etc.)
- Search for "Burn Notice"
- Have the API return the list of episodes WHERE watched = 'f' ORDER BY episode_order ...or some such thing
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 :-)