Jump to content

Library Sync & Kodi Sync


Recommended Posts

breezytm
Posted

Hey gents 

 

I noticed something today and I've already been wondering why this happens for months now and finally I think I figured it out. It seems like when the server is scanning and updating play states, the kodi add-on is constantly syncing and pulling the data at the same time and also compressing the kodi's database. This makes makes it unusable specially for someone using a low powered device and/or the Arctic Zephyr: From Ashes skin as the "please wait circle" just sits there in the middle of the screen and the user can not navigate to anything. I have the same exact config in two rooms and I noticed the same parttern at the same time during a library scan and as soon the scan completed both clients stopped updating. 

 

Any way to remedy that? Perhaps wait for the server library scan complete even prior to execute a library update on kodi

 

 

Angelblue05
Posted (edited)

I think the server api doesn't respond well during the library scan. As if they are running on the same thread at times (not sure if Emby is multi threaded...).

 

I just don't think it's a good idea even if the effect of it would be beneficial to some. You also have to think, for example, when adding new content, you'd have to wait the entire length of the library scan (for some, it's long...) before seeing new content in Kodi? It's not a good solution.

 

The add-on is event based, meaning, it will only do stuff if the server or the user tells it to do stuff. Why is the server updating so many playstates? If it's a schedule task, why not reconfigure it to run at a different time? You should check to see why your server is pushing so many updates.

Edited by Angelblue05
breezytm
Posted

I think the server api doesn't respond well during the library scan. As if they are running on the same thread at times (not sure if Emby is multi threaded...).

 

I just don't think it's a good idea even if the effect of it would be beneficial to some. You also have to think, for example, when adding new content, you'd have to wait the entire length of the library scan (for some, it's long...) before seeing new content in Kodi? It's not a good solution.

 

The add-on is event based, meaning, it will only do stuff if the server or the user tells it to do stuff. Why is the server updating so many playstates? If it's a schedule task, why not reconfigure it to run at a different time? You should check to see why your server is pushing so many updates.

 

 

I thought about that too but i figure if I can't really do anything with Kodi at that point until the full scan is complete anyway, does it really matter if it adds a new content?

 

I think my server is slow, since its a nas box, so it takes a while for it to do anything and everything Emby related. A library scan with no new item still takes about a min to complete. 

Angelblue05
Posted

I see. Well I guess in your case, you will need to configure your server in such a way to mitigate extra activities. You should only receive playstate updates for what you actually watch. Technically, it shouldn't be a large amount daily.... You should very rarely see content updates, unless for new content, are you seeing more than supposed? Once you resolve this, it will lessen the strain put on your server as a whole.

 

You should check your server logs, try to notice when things are running and why. Get to the bottom of this.

 

I used to have similar issues, like nfos being refreshed constantly, causing daily updates for content that haven't been modified/viewed in a long time. All this was due to the server nfo settings to save image paths to nfo. Every time a schedule task ran to refresh artwork or people, it caused to update nfos with the same information. All this was picked up during library scans, making the process a lot slower than it should have been.

breezytm
Posted

I see. Well I guess in your case, you will need to configure your server in such a way to mitigate extra activities. You should only receive playstate updates for what you actually watch. Technically, it shouldn't be a large amount daily.... You should very rarely see content updates, unless for new content, are you seeing more than supposed? Once you resolve this, it will lessen the strain put on your server as a whole.

 

You should check your server logs, try to notice when things are running and why. Get to the bottom of this.

 

I used to have similar issues, like nfos being refreshed constantly, causing daily updates for content that haven't been modified/viewed in a long time. All this was due to the server nfo settings to save image paths to nfo. Every time a schedule task ran to refresh artwork or people, it caused to update nfos with the same information. All this was picked up during library scans, making the process a lot slower than it should have been.

 

 

That make sense. I notice the same pattern you are mentioning. Emby syncs even when there aren't any chances in my library. It scans old items to library which were already there and have been there for years. I don't do nfo files. I set my post-processing script to delete them. But it makes total sense. I feel like this thing do take too long to scan. Plex is running on the same box and it does a full scan in i would say 1/10th of the time it takes Emby and they are both looking at the same exact contents. 

  • Like 1
Guest
This topic is now closed to further replies.
×
×
  • Create New...