diff options
| author | Tim Hobbs <jesus.tesh@gmail.com> | 2014-03-20 13:45:33 -0700 |
|---|---|---|
| committer | Tim Hobbs <jesus.tesh@gmail.com> | 2014-03-20 13:45:33 -0700 |
| commit | afa9f14cdb383302862b403fd038b95b5709a6aa (patch) | |
| tree | bdf19f7e5f43d43a0db84c5712e3e2e4e7252ba0 /MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs | |
| parent | d5e49f590d8e027a8755ea607bf3caba3ddcc9f1 (diff) | |
| parent | 0d518ebf170eefc29fd164eabcbd8d4152177fee (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs')
| -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)) { |
