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

@ -110,8 +110,6 @@ def get_filtered_section(parent_id, media=None, limit=None, recursive=None, sort
if media and 'Photo' in media:
params['Fields'] += ",Width,Height"
LOG.info(params)
return _get("Users/{UserId}/Items", params, server_id)
def get_movies_by_boxset(boxset_id):

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