mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Adjust refresh behavior
This commit is contained in:
parent
3297e47ff8
commit
c8c43dadee
2 changed files with 3 additions and 2 deletions
|
@ -110,8 +110,6 @@ def get_filtered_section(parent_id, media=None, limit=None, recursive=None, sort
|
||||||
if media and 'Photo' in media:
|
if media and 'Photo' in media:
|
||||||
params['Fields'] += ",Width,Height"
|
params['Fields'] += ",Width,Height"
|
||||||
|
|
||||||
LOG.info(params)
|
|
||||||
|
|
||||||
return _get("Users/{UserId}/Items", params, server_id)
|
return _get("Users/{UserId}/Items", params, server_id)
|
||||||
|
|
||||||
def get_movies_by_boxset(boxset_id):
|
def get_movies_by_boxset(boxset_id):
|
||||||
|
|
|
@ -180,11 +180,14 @@ class Library(threading.Thread):
|
||||||
not self.writer_threads['userdata'] and not self.writer_threads['removed']):
|
not self.writer_threads['userdata'] and not self.writer_threads['removed']):
|
||||||
self.pending_refresh = False
|
self.pending_refresh = False
|
||||||
self.save_last_sync()
|
self.save_last_sync()
|
||||||
|
xbmc.executebuiltin('UpdateLibrary(video)')
|
||||||
|
|
||||||
|
"""
|
||||||
if xbmc.getCondVisibility('Window.IsActive(home)'):
|
if xbmc.getCondVisibility('Window.IsActive(home)'):
|
||||||
xbmc.executebuiltin('UpdateLibrary(video)')
|
xbmc.executebuiltin('UpdateLibrary(video)')
|
||||||
else:
|
else:
|
||||||
xbmc.executebuiltin('Container.Refresh')
|
xbmc.executebuiltin('Container.Refresh')
|
||||||
|
"""
|
||||||
|
|
||||||
def stop_client(self):
|
def stop_client(self):
|
||||||
self.stop_thread = True
|
self.stop_thread = True
|
||||||
|
|
Loading…
Reference in a new issue