The Free Software Media System - Server Backend & API
Don't assume library change only on item count
gnattu588fb9e82bbf
diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.csindex f39fa79eb4..f49e5f7690 100644--- a/MediaBrowser.Controller/Entities/Folder.cs+++ b/MediaBrowser.Controller/Entities/Folder.cs@@ -421,13 +421,12 @@ namespace MediaBrowser.Controller.EntitiesvalidChildren.Add(child);}+ // That's all the new and changed ones - now see if there are any that are missing+ var itemsRemoved = currentChildren.Values.Except(validChildren).ToList();var shouldRemove = !IsRoot || allowRemoveRoot;// If it's an AggregateFolder, don't remove- if (shouldRemove && currentChildren.Count != validChildren.Count)+ if (shouldRemove && itemsRemoved.Count > 0){- // That's all the new and changed ones - now see if there are any that are missing- var itemsRemoved = currentChildren.Values.Except(validChildren).ToList();-foreach (var item in itemsRemoved){if (item.IsFileProtocol)