aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYordany Rodriguez Esquirol <35172997+yresquirol@users.noreply.github.com>2021-11-18 15:23:47 -0500
committerYordany Rodriguez Esquirol <35172997+yresquirol@users.noreply.github.com>2021-11-18 15:23:47 -0500
commit3734c95fd498414c2fcc3a8c46f5cddd14515258 (patch)
treebd9eee66e0ef205c7d9c3b3162a5803285bdb130
parentfa366f0099eb598c311cc1b84aad504584d390f0 (diff)
Related media according to genre
-rw-r--r--Jellyfin.Api/Controllers/LibraryController.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Jellyfin.Api/Controllers/LibraryController.cs b/Jellyfin.Api/Controllers/LibraryController.cs
index 0be853ca4..b3c6fac7c 100644
--- a/Jellyfin.Api/Controllers/LibraryController.cs
+++ b/Jellyfin.Api/Controllers/LibraryController.cs
@@ -739,6 +739,7 @@ namespace Jellyfin.Api.Controllers
var query = new InternalItemsQuery(user)
{
+ Genres = item.Genres, // Passing items' genres to obtain a more accurate list of its related media
Limit = limit,
IncludeItemTypes = includeItemTypes.ToArray(),
SimilarTo = item,