diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-03-20 11:55:09 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-03-20 11:55:09 -0400 |
| commit | e18e7c2b6ee2b6b66d50164ba9c2360da78f73d9 (patch) | |
| tree | 5a2e262b8556953fdd7be30c0a44aae93d7d3864 | |
| parent | 39601fef335c4b160a1c11acd2f0110a974ea15c (diff) | |
Restore library change notification
| -rw-r--r-- | MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs b/MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs index 36a8d3526..59fa78a00 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<T>(); + } + } + // Return it only if it's in the user's library if (includeIfNotFound || allRecursiveChildren.ContainsKey(item.Id)) { |
