浏览代码

Restore library change notification

Luke Pulverenti 11 年之前
父节点
当前提交
e18e7c2b6e
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      MediaBrowser.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs

+ 9 - 0
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))
             {