mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Merge pull request #339 from o010b/master
Handle empty list of updates from server
This commit is contained in:
commit
be2c81c9ab
1 changed files with 7 additions and 3 deletions
|
@ -393,12 +393,16 @@ class Library(threading.Thread):
|
||||||
query_filter = list(set(filters) - set(include))
|
query_filter = list(set(filters) - set(include))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
# Get list of updates from server for synced library types and populate work queues
|
||||||
|
result = self.server.jellyfin.get_sync_queue(last_sync, ",".join([ x for x in query_filter ]))
|
||||||
|
|
||||||
|
if result is None:
|
||||||
|
return True
|
||||||
|
|
||||||
updated = []
|
updated = []
|
||||||
userdata = []
|
userdata = []
|
||||||
removed = []
|
removed = []
|
||||||
|
|
||||||
# Get list of updates from server for synced library types and populate work queues
|
|
||||||
result = self.server.jellyfin.get_sync_queue(last_sync, ",".join([ x for x in query_filter ]))
|
|
||||||
updated.extend(result['ItemsAdded'])
|
updated.extend(result['ItemsAdded'])
|
||||||
updated.extend(result['ItemsUpdated'])
|
updated.extend(result['ItemsUpdated'])
|
||||||
userdata.extend(result['UserDataChanged'])
|
userdata.extend(result['UserDataChanged'])
|
||||||
|
|
Loading…
Reference in a new issue