diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-09-22 20:04:50 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-09-22 20:04:50 -0400 |
| commit | 99dba814f405f08111b36ace4ba8a7fc7a273245 (patch) | |
| tree | d20cda1d4f8579ae438d2660afce69f5caf24003 /MediaBrowser.Server.Implementations/Library/LibraryManager.cs | |
| parent | 1afb28b48797ee53442823cfd395e07d219e8ec3 (diff) | |
add custom intros path
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/LibraryManager.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Library/LibraryManager.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs index 6283ceb2a..222dbbf78 100644 --- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs +++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs @@ -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> |
