aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/LibraryController.cs
diff options
context:
space:
mode:
authortheguymadmax <theguymadmax@proton.me>2025-10-01 19:26:48 -0400
committerGitHub <noreply@github.com>2025-10-01 17:26:48 -0600
commitd6cebf1e67f30063d572519e31b0459b58f3e4b0 (patch)
tree557221c52cfd2f59f1197eecd2799795aae374ef /Jellyfin.Api/Controllers/LibraryController.cs
parentc053a6cd788d3c1e6c7f5114d2f4ad5a5cb90b67 (diff)
Add tag filtering and random sorting to GetSimilarItems (#14918)
Diffstat (limited to 'Jellyfin.Api/Controllers/LibraryController.cs')
-rw-r--r--Jellyfin.Api/Controllers/LibraryController.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/LibraryController.cs b/Jellyfin.Api/Controllers/LibraryController.cs
index b18d7e05d..4c9cc2b1e 100644
--- a/Jellyfin.Api/Controllers/LibraryController.cs
+++ b/Jellyfin.Api/Controllers/LibraryController.cs
@@ -779,12 +779,14 @@ public class LibraryController : BaseJellyfinApiController
var query = new InternalItemsQuery(user)
{
Genres = item.Genres,
+ Tags = item.Tags,
Limit = limit,
IncludeItemTypes = includeItemTypes.ToArray(),
DtoOptions = dtoOptions,
EnableTotalRecordCount = !isMovie ?? true,
EnableGroupByMetadataKey = isMovie ?? false,
- ExcludeItemIds = [itemId]
+ ExcludeItemIds = [itemId],
+ OrderBy = [(ItemSortBy.Random, SortOrder.Ascending)]
};
// ExcludeArtistIds