diff --git a/MediaBrowser.Controller/Entities/AggregateFolder.cs b/MediaBrowser.Controller/Entities/AggregateFolder.cs
index c4fda4fa2..302842e7e 100644
--- a/MediaBrowser.Controller/Entities/AggregateFolder.cs
+++ b/MediaBrowser.Controller/Entities/AggregateFolder.cs
@@ -11,6 +11,17 @@ namespace MediaBrowser.Controller.Entities
///
public class AggregateFolder : Folder
{
+ ///
+ /// We don't support manual shortcuts
+ ///
+ protected override bool SupportsShortcutChildren
+ {
+ get
+ {
+ return false;
+ }
+ }
+
///
/// The _virtual children
///
diff --git a/MediaBrowser.Controller/Entities/CollectionFolder.cs b/MediaBrowser.Controller/Entities/CollectionFolder.cs
index 7d7d60ae5..b080478b8 100644
--- a/MediaBrowser.Controller/Entities/CollectionFolder.cs
+++ b/MediaBrowser.Controller/Entities/CollectionFolder.cs
@@ -67,6 +67,38 @@ namespace MediaBrowser.Controller.Entities
return NullTaskResult;
}
+ ///
+ /// Our children are actually just references to the ones in the physical root...
+ ///
+ /// The linked children.
+ public override List LinkedChildren
+ {
+ get
+ {
+ ItemResolveArgs resolveArgs;
+
+ try
+ {
+ resolveArgs = ResolveArgs;
+ }
+ catch (IOException ex)
+ {
+ Logger.ErrorException("Error getting ResolveArgs for {0}", ex, Path);
+ return new List();
+ }
+
+ return LibraryManager.RootFolder.RecursiveChildren
+ .OfType()
+ .Where(i => i.Path != null && resolveArgs.PhysicalLocations.Contains(i.Path, StringComparer.OrdinalIgnoreCase))
+ .SelectMany(c => c.LinkedChildren).ToList();
+
+ }
+ set
+ {
+ base.LinkedChildren = value;
+ }
+ }
+
///
/// Our children are actually just references to the ones in the physical root...
///
diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs
index 3eda96d3d..ca43ca616 100644
--- a/MediaBrowser.Controller/Entities/Folder.cs
+++ b/MediaBrowser.Controller/Entities/Folder.cs
@@ -81,11 +81,11 @@ namespace MediaBrowser.Controller.Entities
}
}
- public List LinkedChildren { get; set; }
+ public virtual List LinkedChildren { get; set; }
protected virtual bool SupportsShortcutChildren
{
- get { return false; }
+ get { return true; }
}
///
diff --git a/MediaBrowser.Controller/Entities/Movies/BoxSet.cs b/MediaBrowser.Controller/Entities/Movies/BoxSet.cs
index 5c99a62f7..e52ece502 100644
--- a/MediaBrowser.Controller/Entities/Movies/BoxSet.cs
+++ b/MediaBrowser.Controller/Entities/Movies/BoxSet.cs
@@ -6,12 +6,5 @@ namespace MediaBrowser.Controller.Entities.Movies
///
public class BoxSet : Folder
{
- protected override bool SupportsShortcutChildren
- {
- get
- {
- return true;
- }
- }
}
}