fuqit 0 Posted March 21, 2016 Posted March 21, 2016 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 1608 Posted March 21, 2016 Posted March 21, 2016 (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 March 21, 2016 by xnappo
fuqit 0 Posted March 21, 2016 Author Posted March 21, 2016 This does exactly what I needed!! Thank you very much!!
Angelblue05 4131 Posted March 21, 2016 Posted March 21, 2016 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.
fuqit 0 Posted March 22, 2016 Author Posted March 22, 2016 So far so good. Not having any crash and it does pick up content that was added.
Recommended Posts