mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
filter items on library changed
This commit is contained in:
parent
6a740f7ea5
commit
37c1c8626f
1 changed files with 6 additions and 1 deletions
|
@ -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 a new issue