diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-09-05 18:58:57 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-09-05 18:58:57 -0400 |
| commit | e22b696d96fc2f6e9502c7b1b136f660e1009184 (patch) | |
| tree | bf5c325bf4860377ebe7fd9be2737cd319d970f3 /MediaBrowser.Controller | |
| parent | a11fa2e0645f2a44d44ef46d004777c8bd4378c1 (diff) | |
fixes #403 - Grouping by.. with a mixed media collection (Movies & TV) shows an folder <unknown> with all the Movies under it
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Entities/Folder.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs index 8945a3307..e248ddafa 100644 --- a/MediaBrowser.Controller/Entities/Folder.cs +++ b/MediaBrowser.Controller/Entities/Folder.cs @@ -342,19 +342,14 @@ namespace MediaBrowser.Controller.Entities var candidates = GetRecursiveChildren(user).Where(i => i.IncludeInIndex).ToList(); return candidates.AsParallel().SelectMany(i => i.AllGenres) - .Distinct() + .Distinct(StringComparer.OrdinalIgnoreCase) .Select(i => { try { return LibraryManager.GetGenre(i).Result; } - catch (IOException ex) - { - Logger.ErrorException("Error getting genre {0}", ex, i); - return null; - } - catch (AggregateException ex) + catch (Exception ex) { Logger.ErrorException("Error getting genre {0}", ex, i); return null; |
