Jump to content

Recommended Posts

Posted

Does anyone know if it's possible to run a manual sync via command?   I would like to have this run when the htpc wakes up.

thanks!

xnappo
Posted (edited)

Should be possible to do a minor addon change to do this.  I think I used to have code in there but there was some problem - don't remember.

 

In resources/lib/kodimonitor.py find this:

        elif method == "System.OnWake":
            # Allow network to wake up
            xbmc.sleep(10000)
            utils.window('emby_onWake', value="true")

Change it to this (untested!):

        elif method == "System.OnWake":
            # Allow network to wake up
            xbmc.sleep(10000)
            utils.window('emby_onWake', value="true")
            import librarysync
            librarysync.ManualSync().sync(dialog=True)
Edited by xnappo
Posted

Thanks, I'll give it a try this evening.

Posted

This does exactly what I needed!!   Thank you very much!!

Angelblue05
Posted

I'm working on a better behavior for wake. This is fine for now, but if your connection is not up in time, it will crash the add-on.

Posted

So far so good.  Not having any crash and it does pick up content that was added.

Angelblue05
Posted

That's good. :)

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