The Free Software Media System - Server Backend & API
Restore library change notification
Luke Pulverentie18e7c2b6ee2
diff --git a/MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs b/MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.csindex 36a8d3526e..59fa78a009 100644--- a/MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs+++ b/MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs@@ -283,6 +283,15 @@ namespace MediaBrowser.Server.Implementations.EntryPointsreturn new[] { user.RootFolder as T };}+ // Need to find what user collection folder this belongs to+ if (item.Parent is AggregateFolder)+ {+ if (item.LocationType == LocationType.FileSystem)+ {+ return collections.Where(i => i.PhysicalLocations.Contains(item.Path)).Cast<T>();+ }+ }+// Return it only if it's in the user's libraryif (includeIfNotFound || allRecursiveChildren.ContainsKey(item.Id)){