Jump to content

Library auto update (fast sync) on interval


Go to solution Solved by Angelblue05,

Recommended Posts

Posted

When I now open Kodi with Emby addon installed the fast startup sync does sync all new added items and they will become visible for me. It only does this once during the startup of Kodi. 

Is it possible to have an option that will sync on interval for let's say every 15 minutes or every hour. Or let the user choose his own interval time.

 

I have now installed the Kodi addon "Auto libray update" and I thought this would do that but it does not do what I thought it would do. The only way to see new added items during the time I had Kodi opened it to close Kodi and reopen it.

 

Is this possible?

 

Thanks.

Angelblue05
Posted

Do you have issues with the websocket? That's how the addon gets live updates from the server.

 

 

Sent from my iPhone using Tapatalk

Posted

Do you have issues with the websocket? That's how the addon gets live updates from the server.

 

 

Sent from my iPhone using Tapatalk

Not sure what you mean with that. For as long as I use Kodi with the Emby addon and fast sync enabled I get new items only at the start of Kodi.

This should work the way I want, already?

 

I have made some changes in Kodi to see if that helped. I'll let you know soon.

Angelblue05
Posted

The fast sync is only there for when Kodi is offline. When Kodi is online, you should get live updates. No need to sync. Are you able to use the webclient remote control to control the client? If not, then that means the websocket is unreachable by the client. If you fix that, then everything should start working as it should. To test, simply start playing something in Kodi, go to your emby dashboard > active device, try to pause playback.

 

 

Sent from my iPhone using Tapatalk

Posted

The fast sync is only there for when Kodi is offline. When Kodi is online, you should get live updates. No need to sync. Are you able to use the webclient remote control to control the client? If not, then that means the websocket is unreachable by the client. If you fix that, then everything should start working as it should. To test, simply start playing something in Kodi, go to your emby dashboard > active device, try to pause playback.

Sent from my iPhone using Tapatalk

Play and pause from the dashboard works.

 

I have made som changes now in the links to my series. The links were not emby links but kodi label links. I have now set back to emby links to see what happens now.

Posted (edited)

Emby added 2 new shows episodes with auto organize about 15 minutes ago and I deleted one after playing but no changes are visible in Kodi while already opened.. Not in my series and also not in the skin helper widget for recently added episodes.

 

Fast startup sync is enabled and I can play and pause from the dashboard. With emby nodes and kodi labels as link.

Edited by heula
  • Like 1
Angelblue05
Posted

Please provide your Kodi log. Otherwise I can't help.

 

 

Sent from my iPhone using Tapatalk

Posted

I'm also using Kodi 17.5.

 

Kodi log

Angelblue05
Posted (edited)

Thanks, I'll have a look. Please for future reference, Kodi debug is not required. Only the add-on's. [emoji4]

 

I think I see something. Will do some testing and let you know when I have something for you to test.

Edited by Angelblue05
  • Like 1
Angelblue05
Posted

@@heula

 

I'm sorry, can I ask you to grab a new log for me using this build? I've tried troubleshooting your issue but it's not evident. Here is what I saw in your log last time, I saw you received a userdata update, then for some reason, it just never gets processed and loops infinitely. So live updates are received but something else is causing the add-on to not process it.

 

 

 

 

 

plugin.video.emby-2.3.57a.zip

Posted (edited)

I have installed the test version but still no live update of new items.

 

kodi log

 

perhaps is that loop thing something I mentioned A while ago. I have set show progress if more items than... to 100000000000 because the notification on top of the screen that shows that progress went crazy.

 

see this link for that issue.

 

thanks.

Edited by heula
  • Like 1
Angelblue05
Posted (edited)

The build didn't contain a fix so of course. It just contains extra logging so I can see what's causing the loop.

 

 

Sent from my iPhone using Tapatalk

Edited by Angelblue05
  • Solution
Angelblue05
Posted (edited)

@@heula

 

Ok I think I see the issue. Something in Kodi is keeping your Kodi database open. I believe the issue comes from your advanced settings. When the add-on processes fast sync, it forces Kodi to refresh your library which initiates the clean on update. I believe this is why the add-on is stuck in a loop, waiting for the Kodi clean on update to end (which doesn't seem to properly end the process with event triggering).

 

14:11:13.419 T:16516  NOTICE: Contents of special://profile/advancedsettings.xml are...
                                            <!-- zerocache -->
                                            <advancedsettings>
                                              <fullscreen>true</fullscreen>
                                              <alwaysontop>yes</alwaysontop>
                                              <splash>True</splash>
                                              <showexitbutton>true</showexitbutton>
                                              <cache>
                                                <buffermode>1</buffermode>
                                                <memorysize>104857600</memorysize>
                                                <readfactor>1.5</readfactor>
                                              </cache>
                                              <epg>
                                                <displayupdatepopup>false</displayupdatepopup>
                                                <!-- display a progress popup while updating EPG data from clients -->
                                              </epg>
                                              <network>
                                                <curlclienttimeout>10</curlclienttimeout>
                                                <curllowspeedtime>10</curllowspeedtime>
                                              </network>
                                              <gui>
                                                <algorithmdirtyregions>3</algorithmdirtyregions>
                                                <nofliptimeout>0</nofliptimeout>
                                              </gui>
                                              <videoscanner>
                                                <ignoreerrors>true</ignoreerrors>
                                              </videoscanner>
                                              <video>
                                                <dxvaallowhqscaling>false</dxvaallowhqscaling>
                                                <enablehighqualityhwscalers>true</enablehighqualityhwscalers>
                                              </video>
                                              <videolibrary>
                                                <hideemptyseries>true</hideemptyseries>
                                                <!-- hide empty series in the video library -->
                                                <cleanonupdate>true</cleanonupdate> <----------------------------------- Remove this line.
                                                <!-- Comment: Also clean library during library update -->
                                                <hideallitems>true</hideallitems>
                                                <!-- removes the "*All" items from the video library -->
                                                <importwatchedstate>true</importwatchedstate>
                                              </videolibrary>
                                              <loglevel>1</loglevel>
                                            </advancedsettings>
 
Does that resolve it?
Edited by Angelblue05
  • Like 1
Posted

Yes this solved it!

 

Thanks.

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