Adjust refresh behavior

This commit is contained in:
angelblue05 2018-09-13 20:47:51 -05:00
parent 3297e47ff8
commit c8c43dadee
2 changed files with 3 additions and 2 deletions

View file

@ -180,11 +180,14 @@ class Library(threading.Thread):
not self.writer_threads['userdata'] and not self.writer_threads['removed']):
self.pending_refresh = False
self.save_last_sync()
xbmc.executebuiltin('UpdateLibrary(video)')
"""
if xbmc.getCondVisibility('Window.IsActive(home)'):
xbmc.executebuiltin('UpdateLibrary(video)')
else:
xbmc.executebuiltin('Container.Refresh')
"""
def stop_client(self):
self.stop_thread = True