Browse Source

Related media according to genre

Yordany Rodriguez Esquirol 3 years ago
parent
commit
3734c95fd4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Jellyfin.Api/Controllers/LibraryController.cs

+ 1 - 0
Jellyfin.Api/Controllers/LibraryController.cs

@@ -739,6 +739,7 @@ namespace Jellyfin.Api.Controllers
 
 
             var query = new InternalItemsQuery(user)
             var query = new InternalItemsQuery(user)
             {
             {
+                Genres = item.Genres, // Passing items' genres to obtain a more accurate list of its related media
                 Limit = limit,
                 Limit = limit,
                 IncludeItemTypes = includeItemTypes.ToArray(),
                 IncludeItemTypes = includeItemTypes.ToArray(),
                 SimilarTo = item,
                 SimilarTo = item,