mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-19 07:21:45 +02:00
fixes #403 - Grouping by.. with a mixed media collection (Movies & TV) shows an folder <unknown> with all the Movies under it
This commit is contained in:
parent
a11fa2e064
commit
e22b696d96
1 changed files with 2 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue