From 5bcb7fe67fee478abacd795071959224931dcdbd Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 18 Apr 2013 22:52:22 -0400 Subject: [PATCH] add filters to folder browsing --- MediaBrowser.Model/Entities/PersonType.cs | 4 ++++ MediaBrowser.Server.Implementations/Library/LibraryManager.cs | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Model/Entities/PersonType.cs b/MediaBrowser.Model/Entities/PersonType.cs index e8c46e29a..6c8352d62 100644 --- a/MediaBrowser.Model/Entities/PersonType.cs +++ b/MediaBrowser.Model/Entities/PersonType.cs @@ -30,5 +30,9 @@ namespace MediaBrowser.Model.Entities /// The guest star /// public const string GuestStar = "GuestStar"; + /// + /// The producer + /// + public const string Producer = "Producer"; } } diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs index c4fba747b..46e8b261f 100644 --- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs +++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs @@ -630,7 +630,7 @@ namespace MediaBrowser.Server.Implementations.Library { 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)); @@ -694,7 +694,7 @@ namespace MediaBrowser.Server.Implementations.Library var tasks = new List(); - 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 .Where(c => c.People != null)