From 37c1c8626f9854e52c6987d2a99369fac6dea198 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 10 May 2013 21:21:42 -0400 Subject: filter items on library changed --- MediaBrowser.ServerApplication/EntryPoints/WebSocketEvents.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.ServerApplication/EntryPoints/WebSocketEvents.cs') diff --git a/MediaBrowser.ServerApplication/EntryPoints/WebSocketEvents.cs b/MediaBrowser.ServerApplication/EntryPoints/WebSocketEvents.cs index a4a43509d..5e0a477f3 100644 --- a/MediaBrowser.ServerApplication/EntryPoints/WebSocketEvents.cs +++ b/MediaBrowser.ServerApplication/EntryPoints/WebSocketEvents.cs @@ -272,8 +272,13 @@ namespace MediaBrowser.ServerApplication.EntryPoints { // Remove dupes in case some were saved multiple times LibraryUpdateInfo.FoldersAddedTo = LibraryUpdateInfo.FoldersAddedTo.Distinct().ToList(); + LibraryUpdateInfo.FoldersRemovedFrom = LibraryUpdateInfo.FoldersRemovedFrom.Distinct().ToList(); - LibraryUpdateInfo.ItemsUpdated = LibraryUpdateInfo.ItemsUpdated.Distinct().ToList(); + + LibraryUpdateInfo.ItemsUpdated = LibraryUpdateInfo.ItemsUpdated + .Where(i => !LibraryUpdateInfo.ItemsAdded.Contains(i)) + .Distinct() + .ToList(); _serverManager.SendWebSocketMessage("LibraryChanged", LibraryUpdateInfo); -- cgit v1.2.3