AmigaZoid 2 Posted June 6, 2017 Posted June 6, 2017 I have just switched over to Emby and I have a media server with 3 kodi boxes connected. Does the individual kodi boxes keep a local library or does it come from emby? The reason I ask is that I am working with JSON to search for a movie to obtain the movie id. I use this id to play it to a kodi box. I've noticed the movie id is different depending on which kodi box I execute the JSON on making me wonder if they keep local libraries. In the long run, it just changes the order of actions. I was planning to search on the media server and then send the play request to the kodi box. I will have to just do the search on the individual box first prior to the play command. It just seems to defeat the purpose of a central server. Thanks for any insight.
Logos302 86 Posted June 6, 2017 Posted June 6, 2017 I havn't used kodi for emby in a while, but I'm pretty sure that they get the info from emby but keep a local copy. So that all kodi plug-in work and so on. It's actually on of the reasons I didn't like kodi.
mastrmind11 722 Posted June 6, 2017 Posted June 6, 2017 As far as I am aware, the emby sync plugin overwrites the old kodi library db, so in that sense yes, there is a local copy of the metadata. But considering what you're trying to do, I'd imagine you'd want to query the server, not the individual kodi instance. disclaimer: I haven't looked at the schema of either the server or library db, but programatically that'd make sense since the server is what houses the physical movie id.
ferzal 12 Posted June 7, 2017 Posted June 7, 2017 Kodi only works with local Database or a MySQL backend (which can be problematic hence the Emby solution works best for me). The plugin for Kodi first clears then recreates the local database and with the optional (mandatory IMO) plugin does quick syncs on launch with Emby's libraries. So, yes, they would have different IDs in each Kodi database. There could be common fields but I'm guessing you can't launch a Kodi Play command without the ID? Kodi has to be launched and given a moment to sync with Emby before it's ready for its DB to be searched (in case you're using some remote launch command in your project).
rhodges 49 Posted June 7, 2017 Posted June 7, 2017 @@AmigaZoid What is your programming expertise? Running the Emby for Kodi plugin has some options that might not be readily apparent. The plugin reports its capabilities to Emby, and those include the ability to play/pause, etc. You can, instead of running commands against Kodi directly, you can point them at Emby. Take a look at the Emby api documentation. You can obtain a list of Emby sessions and find the device you want to control. Then you can issue commands to Emby, to tell it to play a movie using the Emby ID. Basically, you can be client agnostic, so long as the client reports the ability to be remotely controlled like that, and Kodi does. I did something similar a while back when I was playing with an Alexa plugin. 1
AmigaZoid 2 Posted June 11, 2017 Author Posted June 11, 2017 Thanks for your comments, this was all for an alexa app to voice control my TV, lights and kodi. This is now complete ( at least the movie search and play). It currently searches for the requested movie and plays to 1 of 4 kodi installations. I still need to add all other kodi functions but all TV functions are done.
Recommended Posts