|
|
|
@ -1149,29 +1149,19 @@ namespace MediaBrowser.Controller.Entities
|
|
|
|
|
return LinkedChildren
|
|
|
|
|
.Select(i =>
|
|
|
|
|
{
|
|
|
|
|
var requiresPostFilter = true;
|
|
|
|
|
var child = GetLinkedChild(i);
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(i.Path))
|
|
|
|
|
if (child != null)
|
|
|
|
|
{
|
|
|
|
|
requiresPostFilter = false;
|
|
|
|
|
|
|
|
|
|
if (!locations.Any(l => FileSystem.ContainsSubPath(l, i.Path)))
|
|
|
|
|
var childLocationType = child.LocationType;
|
|
|
|
|
if (childLocationType == LocationType.Remote || childLocationType == LocationType.Virtual)
|
|
|
|
|
{
|
|
|
|
|
if (!child.IsVisibleStandalone(user))
|
|
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var child = GetLinkedChild(i);
|
|
|
|
|
|
|
|
|
|
if (requiresPostFilter && child != null)
|
|
|
|
|
{
|
|
|
|
|
if (string.IsNullOrWhiteSpace(child.Path))
|
|
|
|
|
{
|
|
|
|
|
Logger.Debug("Found LinkedChild with null path: {0}", child.Name);
|
|
|
|
|
return child;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!locations.Any(l => FileSystem.ContainsSubPath(l, child.Path)))
|
|
|
|
|
else if (childLocationType == LocationType.FileSystem && !locations.Any(l => FileSystem.ContainsSubPath(l, child.Path)))
|
|
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|