mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
exclude trailers from suggestion categories
This commit is contained in:
parent
0e03980262
commit
29f2a0145f
1 changed files with 2 additions and 0 deletions
|
@ -155,6 +155,8 @@ namespace MediaBrowser.Api.Movies
|
||||||
listEligibleForSuggestion.AddRange(list);
|
listEligibleForSuggestion.AddRange(list);
|
||||||
|
|
||||||
listEligibleForCategories = listEligibleForCategories
|
listEligibleForCategories = listEligibleForCategories
|
||||||
|
// Exclude trailers from the suggestion categories
|
||||||
|
.Where(i => i is Movie)
|
||||||
.DistinctBy(i => i.Name, StringComparer.OrdinalIgnoreCase)
|
.DistinctBy(i => i.Name, StringComparer.OrdinalIgnoreCase)
|
||||||
.DistinctBy(i => i.GetProviderId(MetadataProviders.Imdb) ?? Guid.NewGuid().ToString(), StringComparer.OrdinalIgnoreCase)
|
.DistinctBy(i => i.GetProviderId(MetadataProviders.Imdb) ?? Guid.NewGuid().ToString(), StringComparer.OrdinalIgnoreCase)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
Loading…
Reference in a new issue