add filters to folder browsing

This commit is contained in:
Luke Pulverenti 2013-04-18 22:52:22 -04:00
parent 4ae6b333f4
commit 5bcb7fe67f
2 changed files with 6 additions and 2 deletions

View File

@ -30,5 +30,9 @@ namespace MediaBrowser.Model.Entities
/// The guest star /// The guest star
/// </summary> /// </summary>
public const string GuestStar = "GuestStar"; public const string GuestStar = "GuestStar";
/// <summary>
/// The producer
/// </summary>
public const string Producer = "Producer";
} }
} }

View File

@ -630,7 +630,7 @@ namespace MediaBrowser.Server.Implementations.Library
{ {
cancellationToken.ThrowIfCancellationRequested(); cancellationToken.ThrowIfCancellationRequested();
_logger.Debug("Creating {0}: {1}", typeof(T).Name, name); _logger.Debug("Getting {0}: {1}", typeof(T).Name, name);
path = Path.Combine(path, FileSystem.GetValidFilename(name)); path = Path.Combine(path, FileSystem.GetValidFilename(name));
@ -694,7 +694,7 @@ namespace MediaBrowser.Server.Implementations.Library
var tasks = new List<Task>(); var tasks = new List<Task>();
var includedPersonTypes = new[] { PersonType.Actor, PersonType.Director, PersonType.GuestStar }; var includedPersonTypes = new[] { PersonType.Actor, PersonType.Director, PersonType.GuestStar, PersonType.Writer, PersonType.Director, PersonType.Producer };
var people = RootFolder.RecursiveChildren var people = RootFolder.RecursiveChildren
.Where(c => c.People != null) .Where(c => c.People != null)