From e44d2a4b3d871d861807d23741e74690f4257305 Mon Sep 17 00:00:00 2001 From: xnappo Date: Tue, 12 May 2015 07:14:38 -0500 Subject: [PATCH] Force a full sync when items added (for now) --- resources/lib/WebSocketClient.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/lib/WebSocketClient.py b/resources/lib/WebSocketClient.py index a1c52d2a..f89a53f4 100644 --- a/resources/lib/WebSocketClient.py +++ b/resources/lib/WebSocketClient.py @@ -163,8 +163,12 @@ class WebSocketThread(threading.Thread): self.logMsg("Message : WebSocket LibraryChanged : Items Updated : " + str(itemsUpdated), 0) self.logMsg("Message : WebSocket LibraryChanged : Items Removed : " + str(itemsRemoved), 0) - self.remove_items(itemsRemoved) - self.update_items(itemsToUpdate) + if itemsAdded: + self.logMsg("Message : Doing Full LibrarySync") + LibrarySync().FullLibrarySync() + else: + self.remove_items(itemsRemoved) + self.update_items(itemsToUpdate) elif messageType == "GeneralCommand":