Update MediaBrowser.Controller/Entities/Folder.cs

This commit is contained in:
Joshua M. Boniface 2024-05-11 10:56:14 -04:00 committed by GitHub
parent 588fb9e82b
commit 47b79df136
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -421,7 +421,7 @@ namespace MediaBrowser.Controller.Entities
validChildren.Add(child);
}
// That's all the new and changed ones - now see if there are any that are missing
// That's all the new and changed ones - now see if any have been removed and need cleanup
var itemsRemoved = currentChildren.Values.Except(validChildren).ToList();
var shouldRemove = !IsRoot || allowRemoveRoot;
// If it's an AggregateFolder, don't remove