aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api
diff options
context:
space:
mode:
authorevan314159 <110177090+evan314159@users.noreply.github.com>2025-08-23 09:00:29 +0800
committerGitHub <noreply@github.com>2025-08-22 19:00:29 -0600
commit1eadb07a128e1040335506436ef85ff724592e58 (patch)
tree0800d64d038fbd93e0672efd5120534684d93aca /Jellyfin.Api
parent26d9633fed1aeda316d709e330c8806b7ac15b98 (diff)
Fix GetSimilarItems to exclude the searched for item Id (#14686)
Diffstat (limited to 'Jellyfin.Api')
-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 bde1758e9..b18d7e05d 100644
--- a/Jellyfin.Api/Controllers/LibraryController.cs
+++ b/Jellyfin.Api/Controllers/LibraryController.cs
@@ -784,6 +784,7 @@ public class LibraryController : BaseJellyfinApiController
DtoOptions = dtoOptions,
EnableTotalRecordCount = !isMovie ?? true,
EnableGroupByMetadataKey = isMovie ?? false,
+ ExcludeItemIds = [itemId]
};
// ExcludeArtistIds