diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-10 21:21:42 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-10 21:21:42 -0400 |
| commit | 37c1c8626f9854e52c6987d2a99369fac6dea198 (patch) | |
| tree | 8b1b39f8cea8132531222817633e04f737615765 /MediaBrowser.ServerApplication/EntryPoints/WebSocketEvents.cs | |
| parent | 6a740f7ea5aabc5647e49d651e28768bc05554dd (diff) | |
filter items on library changed
Diffstat (limited to 'MediaBrowser.ServerApplication/EntryPoints/WebSocketEvents.cs')
| -rw-r--r-- | MediaBrowser.ServerApplication/EntryPoints/WebSocketEvents.cs | 7 |
1 files changed, 6 insertions, 1 deletions
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); |
