From e18e7c2b6ee2b6b66d50164ba9c2360da78f73d9 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 20 Mar 2014 11:55:09 -0400 Subject: [PATCH] Restore library change notification --- .../EntryPoints/LibraryChangedNotifier.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs b/MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs index 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.EntryPoints return 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(); + } + } + // Return it only if it's in the user's library if (includeIfNotFound || allRecursiveChildren.ContainsKey(item.Id)) {