mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-03 05:34:16 -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,
|
Genres = item.Genres,
|
||||||
Limit = limit,
|
Limit = limit,
|
||||||
IncludeItemTypes = includeItemTypes.ToArray(),
|
IncludeItemTypes = includeItemTypes.ToArray(),
|
||||||
SimilarTo = item,
|
|
||||||
DtoOptions = dtoOptions,
|
DtoOptions = dtoOptions,
|
||||||
EnableTotalRecordCount = !isMovie ?? true,
|
EnableTotalRecordCount = !isMovie ?? true,
|
||||||
EnableGroupByMetadataKey = isMovie ?? false,
|
EnableGroupByMetadataKey = isMovie ?? false,
|
||||||
MinSimilarityScore = 2 // A remnant from album/artist scoring
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// ExcludeArtistIds
|
// ExcludeArtistIds
|
||||||
|
@ -277,7 +277,6 @@ public class MoviesController : BaseJellyfinApiController
|
|||||||
Limit = itemLimit,
|
Limit = itemLimit,
|
||||||
IncludeItemTypes = itemTypes.ToArray(),
|
IncludeItemTypes = itemTypes.ToArray(),
|
||||||
IsMovie = true,
|
IsMovie = true,
|
||||||
SimilarTo = item,
|
|
||||||
EnableGroupByMetadataKey = true,
|
EnableGroupByMetadataKey = true,
|
||||||
DtoOptions = dtoOptions
|
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)));
|
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
|
if (filter.OrderBy.Count != 0
|
||||||
|| filter.SimilarTo is not null
|
|
||||||
|| !string.IsNullOrEmpty(filter.SearchTerm))
|
|| !string.IsNullOrEmpty(filter.SearchTerm))
|
||||||
{
|
{
|
||||||
query = ApplyOrder(query, filter);
|
query = ApplyOrder(query, filter);
|
||||||
|
@ -37,7 +37,6 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
IncludeItemTypes = Array.Empty<BaseItemKind>();
|
IncludeItemTypes = Array.Empty<BaseItemKind>();
|
||||||
ItemIds = Array.Empty<Guid>();
|
ItemIds = Array.Empty<Guid>();
|
||||||
MediaTypes = Array.Empty<MediaType>();
|
MediaTypes = Array.Empty<MediaType>();
|
||||||
MinSimilarityScore = 20;
|
|
||||||
OfficialRatings = Array.Empty<string>();
|
OfficialRatings = Array.Empty<string>();
|
||||||
OrderBy = Array.Empty<(ItemSortBy, SortOrder)>();
|
OrderBy = Array.Empty<(ItemSortBy, SortOrder)>();
|
||||||
PersonIds = Array.Empty<Guid>();
|
PersonIds = Array.Empty<Guid>();
|
||||||
@ -71,8 +70,6 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
|
|
||||||
public User? User { get; set; }
|
public User? User { get; set; }
|
||||||
|
|
||||||
public BaseItem? SimilarTo { get; set; }
|
|
||||||
|
|
||||||
public bool? IsFolder { get; set; }
|
public bool? IsFolder { get; set; }
|
||||||
|
|
||||||
public bool? IsFavorite { get; set; }
|
public bool? IsFavorite { get; set; }
|
||||||
@ -295,8 +292,6 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
|
|
||||||
public DtoOptions DtoOptions { get; set; }
|
public DtoOptions DtoOptions { get; set; }
|
||||||
|
|
||||||
public int MinSimilarityScore { get; set; }
|
|
||||||
|
|
||||||
public string? HasNoAudioTrackWithLanguage { get; set; }
|
public string? HasNoAudioTrackWithLanguage { get; set; }
|
||||||
|
|
||||||
public string? HasNoInternalSubtitleTrackWithLanguage { get; set; }
|
public string? HasNoInternalSubtitleTrackWithLanguage { get; set; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user