improve ffmpeg cleanup

This commit is contained in:
Luke Pulverenti
2015-04-10 10:01:16 -04:00
parent 1b600aee37
commit 4f7e8fee24
9 changed files with 96 additions and 64 deletions

View File

@@ -1161,12 +1161,10 @@ namespace MediaBrowser.Controller.Entities
return true;
}
var locations = user.RootFolder
.GetChildren(user, true)
.OfType<CollectionFolder>()
.SelectMany(i => i.PhysicalLocations);
var folders = user.RootFolder.GetChildren(user, true).Select(i => i.Id).ToList();
var itemCollectionFolders = LibraryManager.GetCollectionFolders(this).Select(i => i.Id).ToList();
return locations.Any(l => FileSystem.ContainsSubPath(l, topParent.Path));
return itemCollectionFolders.Any(folders.Contains);
}
/// <summary>