DarWun 267 Posted April 10, 2018 Share Posted April 10, 2018 (edited) I accidentally clicked on the option to create a new device ID on the advanced settings tab of Emby for Kodi. Now the dashboard on the Emby server displays two identical active devices even though there is only one Kodi (LibreELEC) device shown in server device list (see images below). Eventually one of them will disappear from the dashboard. But the next time I restart the server two are displayed again. Is there a way to prevent the duplicate devices from showing up? Edited April 11, 2018 by DarWun Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted April 11, 2018 Share Posted April 11, 2018 What happens if you delete both the entries in the server (second screenshot). Do both get recreated or only one? Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
DarWun 267 Posted April 11, 2018 Author Share Posted April 11, 2018 (edited) What happens if you delete both the entries in the server (second screenshot). Do both get recreated or only one? Sent from my iPhone using Tapatalk @@Angelblue05 The second screenshot was taken after I had deleted both devices from the server. When the server was restarted, the dashboard showed two active devices for Kodi (LibreELEC). But only one device was recreated in the server device list. I'll post logs tomorrow when I get home from work. Edited April 11, 2018 by DarWun Link to comment Share on other sites More sharing options...
DarWun 267 Posted April 11, 2018 Author Share Posted April 11, 2018 (edited) Delete of duplicate post. Edited April 11, 2018 by DarWun Link to comment Share on other sites More sharing options...
DarWun 267 Posted April 12, 2018 Author Share Posted April 12, 2018 (edited) @@Angelblue05 Here are logs from immediately after a point where the Emby for Kodi device was restarted. Two devices showed up in the Emby server dashboard after the restart. server.txt kodi.log Edited April 12, 2018 by DarWun Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted April 12, 2018 Share Posted April 12, 2018 Luke how do we fix this? There's still only one device id, but there's no way to flush the old device id from the server. Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
Dutchie388 0 Posted April 26, 2018 Share Posted April 26, 2018 (edited) delete AppData\Roaming\Kodi\userdata\addon_data\plugin.video.emby\data.txt I came across this problem because it would not sync new shows to 2 clients, just one, i didnt realise emby saw them as the same ID. That data.txt file seems to hold multiple ID's when you create a new one (on the kodi side) I gave one client a new name in kodi under system/service settings... deleted both data.txt files, which it recreates as one ID, now all is well. emby dash sees 2 clients as i named them, no duplicates or old ID's, and both update simultaneously. P.S (oh and i deleted all the devices in the emby dashboard as well so it can start a fresh list of devices that hook up) Edited April 26, 2018 by Dutchie388 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted April 26, 2018 Share Posted April 26, 2018 No. That is not where the client id is held. At all. Sent from my iPhone using Tapatalk Link to comment Share on other sites More sharing options...
horstepipe 356 Posted April 26, 2018 Share Posted April 26, 2018 What I‘m wondering regarding this issue: How does the server/clients behave if you copy the Emby for Kodi settings/userdata from one Kodi instance to another? So how is being accomplished that the IDs are not duplicated? Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted April 26, 2018 Share Posted April 26, 2018 The client id is held in the cache folder within the Kodi directory that also contains userdata. If you want to copy the emby for kodi setup, you use this here: https://github.com/MediaBrowser/plugin.video.emby/wiki/Create-and-restore-from-backup Link to comment Share on other sites More sharing options...
horstepipe 356 Posted April 26, 2018 Share Posted April 26, 2018 Thanks but I was up to something else: What if you also copy the files in the cache folder, so what happens when there are two clients with the same ID? Link to comment Share on other sites More sharing options...
Luke 37094 Posted April 26, 2018 Share Posted April 26, 2018 You're probably going to have problems. Link to comment Share on other sites More sharing options...
horstepipe 356 Posted April 26, 2018 Share Posted April 26, 2018 Yeah I thought so. I‘m asking because I think most users will simply copy everything when they put into operation a second device. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted April 26, 2018 Share Posted April 26, 2018 (edited) Then just hit generate a new device in the add-on settings > advanced. Restart Kodi. Edited April 26, 2018 by Angelblue05 Link to comment Share on other sites More sharing options...
horstepipe 356 Posted April 26, 2018 Share Posted April 26, 2018 :-) I know, sorry I think it’s still not clear what I mean: Let‘s say the ‚normal dumb‘ user has a Kodi device in his living room. It works well so he buys the same box for his bedroom, and as everything works so fine on the first device, he simply puts the whole configuration on the second one. I‘m pretty sure there are lots of people doing it this way so I’m wondering how I (the admin) can see this case became true. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted April 26, 2018 Share Posted April 26, 2018 Then you'd see two devices on your emby dashboard logged in at the same time, with the same name. But only one shows playing content? Is that was you are asking? 1 Link to comment Share on other sites More sharing options...
Luke 37094 Posted April 26, 2018 Share Posted April 26, 2018 Well I think you'd only see one if the server can't tell the difference. Link to comment Share on other sites More sharing options...
horstepipe 356 Posted April 26, 2018 Share Posted April 26, 2018 But then I still can’t be sure whether the devices have the same ID or just the same device name...? Link to comment Share on other sites More sharing options...
horstepipe 356 Posted April 26, 2018 Share Posted April 26, 2018 Well I think you'd only see one if the server can't tell the difference. This would mean users can setup more and more devices without my knowledge? Link to comment Share on other sites More sharing options...
Luke 37094 Posted April 26, 2018 Share Posted April 26, 2018 We're not going to act like this is a supported scenario. It's not. Just click the button to make a new device ID. Maybe in the future Angelblu05 can come up with a better place to store it. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted April 26, 2018 Share Posted April 26, 2018 (edited) No I can't. Cache is where it's supposed to go. It is outside of the addon_data folder. I am limited to the Kodi environment, I can't put it anywhere else. I even set up a way to backup and restore that avoids that issue. There's nothing more to be done here I'm afraid. If you clone your Kodi setup then you should know what you are doing, imo. Edited April 26, 2018 by Angelblue05 1 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted April 26, 2018 Share Posted April 26, 2018 (edited) This would mean users can setup more and more devices without my knowledge? It would be glitchy as hell on their side. They'd encounter bugs with the websocket live updates from the server and more. Edited April 26, 2018 by Angelblue05 1 Link to comment Share on other sites More sharing options...
Luke 37094 Posted April 26, 2018 Share Posted April 26, 2018 It will have to be a documented install step. Sharing the device ID will result in various quirks. Also if you use the api to stop transcoding sessions for a device ID then that could be a problem. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted April 26, 2018 Share Posted April 26, 2018 @ Good idea. Thanks for your input. Link to comment Share on other sites More sharing options...
Luke 37094 Posted April 26, 2018 Share Posted April 26, 2018 does kodi internally have an installation id? I'm guessing not, but maybe it has a device id or uuid abstraction? Link to comment Share on other sites More sharing options...
Recommended Posts