diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-17 15:51:29 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-01-17 15:51:29 -0500 |
| commit | fb335141fb9cb2b2ed626e2ffb555fccb26b3edf (patch) | |
| tree | 57d621fddd079d8821f1e1fe96d75665d65175d5 /MediaBrowser.Api/UserLibrary/ArtistsService.cs | |
| parent | 33d99575940ac97574d328ab9c6143bb3ccb9e8e (diff) | |
display tv service version info
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/ArtistsService.cs')
| -rw-r--r-- | MediaBrowser.Api/UserLibrary/ArtistsService.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/MediaBrowser.Api/UserLibrary/ArtistsService.cs b/MediaBrowser.Api/UserLibrary/ArtistsService.cs index 48fc72913..a96630efe 100644 --- a/MediaBrowser.Api/UserLibrary/ArtistsService.cs +++ b/MediaBrowser.Api/UserLibrary/ArtistsService.cs @@ -112,7 +112,19 @@ namespace MediaBrowser.Api.UserLibrary protected override IEnumerable<MusicArtist> GetAllItems(GetItemsByName request, IEnumerable<BaseItem> items) { return LibraryManager.GetAllArtists(items) - .Select(name => LibraryManager.GetArtist(name)); + .Select(name => + { + try + { + return LibraryManager.GetArtist(name); + } + catch (Exception ex) + { + Logger.ErrorException("Error getting artist {0}", ex, name); + return null; + } + + }).Where(i => i != null); } protected override IEnumerable<BaseItem> GetLibraryItems(MusicArtist item, IEnumerable<BaseItem> libraryItems) |
