Browse Source

Fix GetSimilarItems to exclude the searched for item Id (#14686)

evan314159 2 days ago
parent
commit
1eadb07a12
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Jellyfin.Api/Controllers/LibraryController.cs

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

@@ -784,6 +784,7 @@ public class LibraryController : BaseJellyfinApiController
             DtoOptions = dtoOptions,
             DtoOptions = dtoOptions,
             EnableTotalRecordCount = !isMovie ?? true,
             EnableTotalRecordCount = !isMovie ?? true,
             EnableGroupByMetadataKey = isMovie ?? false,
             EnableGroupByMetadataKey = isMovie ?? false,
+            ExcludeItemIds = [itemId]
         };
         };
 
 
         // ExcludeArtistIds
         // ExcludeArtistIds