filter items on library changed
This commit is contained in:
parent
6a740f7ea5
commit
37c1c8626f
|
@ -272,8 +272,13 @@ namespace MediaBrowser.ServerApplication.EntryPoints
|
||||||
{
|
{
|
||||||
// Remove dupes in case some were saved multiple times
|
// Remove dupes in case some were saved multiple times
|
||||||
LibraryUpdateInfo.FoldersAddedTo = LibraryUpdateInfo.FoldersAddedTo.Distinct().ToList();
|
LibraryUpdateInfo.FoldersAddedTo = LibraryUpdateInfo.FoldersAddedTo.Distinct().ToList();
|
||||||
|
|
||||||
LibraryUpdateInfo.FoldersRemovedFrom = LibraryUpdateInfo.FoldersRemovedFrom.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);
|
_serverManager.SendWebSocketMessage("LibraryChanged", LibraryUpdateInfo);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user