Force a full sync when items added (for now)

This commit is contained in:
xnappo 2015-05-12 07:14:38 -05:00
parent de527327a5
commit e44d2a4b3d

View file

@ -163,8 +163,12 @@ class WebSocketThread(threading.Thread):
self.logMsg("Message : WebSocket LibraryChanged : Items Updated : " + str(itemsUpdated), 0) self.logMsg("Message : WebSocket LibraryChanged : Items Updated : " + str(itemsUpdated), 0)
self.logMsg("Message : WebSocket LibraryChanged : Items Removed : " + str(itemsRemoved), 0) self.logMsg("Message : WebSocket LibraryChanged : Items Removed : " + str(itemsRemoved), 0)
self.remove_items(itemsRemoved) if itemsAdded:
self.update_items(itemsToUpdate) self.logMsg("Message : Doing Full LibrarySync")
LibrarySync().FullLibrarySync()
else:
self.remove_items(itemsRemoved)
self.update_items(itemsToUpdate)
elif messageType == "GeneralCommand": elif messageType == "GeneralCommand":