Jump to content

command line manual sync


fuqit

Recommended Posts

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!

Link to comment
Share on other sites

xnappo

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
Link to comment
Share on other sites

Angelblue05

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.

Link to comment
Share on other sites

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