fuqit 0 Posted March 21, 2016 Share 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! Link to comment Share on other sites More sharing options...
xnappo 1593 Posted March 21, 2016 Share 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 Link to comment Share on other sites More sharing options...
fuqit 0 Posted March 21, 2016 Author Share Posted March 21, 2016 Thanks, I'll give it a try this evening. Link to comment Share on other sites More sharing options...
fuqit 0 Posted March 21, 2016 Author Share Posted March 21, 2016 This does exactly what I needed!! Thank you very much!! Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted March 21, 2016 Share 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. Link to comment Share on other sites More sharing options...
fuqit 0 Posted March 22, 2016 Author Share Posted March 22, 2016 So far so good. Not having any crash and it does pick up content that was added. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted March 22, 2016 Share Posted March 22, 2016 That's good. Link to comment Share on other sites More sharing options...
Recommended Posts