add custom intros path

This commit is contained in:
Luke Pulverenti
2014-09-22 20:04:50 -04:00
parent 1afb28b487
commit 99dba814f4
5 changed files with 54 additions and 18 deletions

View File

@@ -1235,7 +1235,19 @@ namespace MediaBrowser.Server.Implementations.Library
/// <returns>IEnumerable{System.String}.</returns>
public IEnumerable<string> GetAllIntroFiles()
{
return IntroProviders.SelectMany(i => i.GetAllIntroFiles());
return IntroProviders.SelectMany(i =>
{
try
{
return i.GetAllIntroFiles().ToList();
}
catch (Exception ex)
{
_logger.ErrorException("Error getting intro files", ex);
return new List<string>();
}
});
}
/// <summary>