mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Removed obsolete Score and Similiarity values for search
This commit is contained in:
parent
7f03f39bcc
commit
3e7ce5e1df
@ -780,11 +780,9 @@ public class LibraryController : BaseJellyfinApiController
|
||||
Genres = 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
|
||||
};
|
||||
|
||||
// ExcludeArtistIds
|
||||
|
@ -277,7 +277,6 @@ public class MoviesController : BaseJellyfinApiController
|
||||
Limit = itemLimit,
|
||||
IncludeItemTypes = itemTypes.ToArray(),
|
||||
IsMovie = true,
|
||||
SimilarTo = item,
|
||||
EnableGroupByMetadataKey = true,
|
||||
DtoOptions = dtoOptions
|
||||
});
|
||||
|
@ -1708,7 +1708,6 @@ public sealed class BaseItemRepository(IDbContextFactory<JellyfinDbContext> dbPr
|
||||
query = 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);
|
||||
|
@ -37,7 +37,6 @@ namespace MediaBrowser.Controller.Entities
|
||||
IncludeItemTypes = 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.Entities
|
||||
|
||||
public 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.Entities
|
||||
|
||||
public DtoOptions DtoOptions { get; set; }
|
||||
|
||||
public int MinSimilarityScore { get; set; }
|
||||
|
||||
public string? HasNoAudioTrackWithLanguage { get; set; }
|
||||
|
||||
public string? HasNoInternalSubtitleTrackWithLanguage { get; set; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user