The Free Software Media System - Server Backend & API
Removed obsolete Score and Similiarity values for search
JPVenson3e7ce5e1df9c
diff --git a/Jellyfin.Api/Controllers/LibraryController.cs b/Jellyfin.Api/Controllers/LibraryController.csindex b2d75d5a38..72129a5851 100644--- a/Jellyfin.Api/Controllers/LibraryController.cs+++ b/Jellyfin.Api/Controllers/LibraryController.cs@@ -780,11 +780,9 @@ public class LibraryController : BaseJellyfinApiControllerGenres = item.Genres,Limit = limit,IncludeItemTypes = includeItemTypes.ToArray(),- SimilarTo = item,DtoOptions = dtoOptions,EnableTotalRecordCount = !isMovie ?? true,EnableGroupByMetadataKey = isMovie ?? false,- MinSimilarityScore = 2 // A remnant from album/artist scoring};// ExcludeArtistIdsdiff --git a/Jellyfin.Api/Controllers/MoviesController.cs b/Jellyfin.Api/Controllers/MoviesController.csindex c2bdf71c5a..ae67b6710c 100644--- a/Jellyfin.Api/Controllers/MoviesController.cs+++ b/Jellyfin.Api/Controllers/MoviesController.cs@@ -277,7 +277,6 @@ public class MoviesController : BaseJellyfinApiControllerLimit = itemLimit,IncludeItemTypes = itemTypes.ToArray(),IsMovie = true,- SimilarTo = item,EnableGroupByMetadataKey = true,DtoOptions = dtoOptions});diff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.csindex d82de097cd..86c6820275 100644--- a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs+++ b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs@@ -1708,7 +1708,6 @@ public sealed class BaseItemRepository(IDbContextFactory<JellyfinDbContext> dbPrquery = query.Where(e => e.Type == returnType && e.ItemValues!.Any(f => e.CleanName == f.CleanValue && itemValueTypes.Any(w => (ItemValueType)w == f.Type)));if (filter.OrderBy.Count != 0- || filter.SimilarTo is not null|| !string.IsNullOrEmpty(filter.SearchTerm)){query = ApplyOrder(query, filter);diff --git a/MediaBrowser.Controller/Entities/InternalItemsQuery.cs b/MediaBrowser.Controller/Entities/InternalItemsQuery.csindex 1461a3680a..43f02fb72b 100644--- a/MediaBrowser.Controller/Entities/InternalItemsQuery.cs+++ b/MediaBrowser.Controller/Entities/InternalItemsQuery.cs@@ -37,7 +37,6 @@ namespace MediaBrowser.Controller.EntitiesIncludeItemTypes = Array.Empty<BaseItemKind>();ItemIds = Array.Empty<Guid>();MediaTypes = Array.Empty<MediaType>();- MinSimilarityScore = 20;OfficialRatings = Array.Empty<string>();OrderBy = Array.Empty<(ItemSortBy, SortOrder)>();PersonIds = Array.Empty<Guid>();@@ -71,8 +70,6 @@ namespace MediaBrowser.Controller.Entitiespublic User? User { get; set; }- public BaseItem? SimilarTo { get; set; }-public bool? IsFolder { get; set; }public bool? IsFavorite { get; set; }@@ -295,8 +292,6 @@ namespace MediaBrowser.Controller.Entitiespublic DtoOptions DtoOptions { get; set; }- public int MinSimilarityScore { get; set; }-public string? HasNoAudioTrackWithLanguage { get; set; }public string? HasNoInternalSubtitleTrackWithLanguage { get; set; }