mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-21 16:25:28 +03:00
Use original name for MusicAritist matching (#15689)
This commit is contained in:
@@ -1058,6 +1058,7 @@ namespace Emby.Server.Implementations.Library
|
|||||||
{
|
{
|
||||||
IncludeItemTypes = [BaseItemKind.MusicArtist],
|
IncludeItemTypes = [BaseItemKind.MusicArtist],
|
||||||
Name = name,
|
Name = name,
|
||||||
|
UseRawName = true,
|
||||||
DtoOptions = options
|
DtoOptions = options
|
||||||
}).Cast<MusicArtist>()
|
}).Cast<MusicArtist>()
|
||||||
.OrderBy(i => i.IsAccessedByName ? 1 : 0)
|
.OrderBy(i => i.IsAccessedByName ? 1 : 0)
|
||||||
|
|||||||
@@ -1929,10 +1929,17 @@ public sealed class BaseItemRepository
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(filter.Name))
|
if (!string.IsNullOrWhiteSpace(filter.Name))
|
||||||
|
{
|
||||||
|
if (filter.UseRawName == true)
|
||||||
|
{
|
||||||
|
baseQuery = baseQuery.Where(e => e.Name == filter.Name);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
var cleanName = GetCleanValue(filter.Name);
|
var cleanName = GetCleanValue(filter.Name);
|
||||||
baseQuery = baseQuery.Where(e => e.CleanName == cleanName);
|
baseQuery = baseQuery.Where(e => e.CleanName == cleanName);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// These are the same, for now
|
// These are the same, for now
|
||||||
var nameContains = filter.NameContains;
|
var nameContains = filter.NameContains;
|
||||||
|
|||||||
@@ -125,6 +125,8 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
|
|
||||||
public string? Name { get; set; }
|
public string? Name { get; set; }
|
||||||
|
|
||||||
|
public bool? UseRawName { get; set; }
|
||||||
|
|
||||||
public string? Person { get; set; }
|
public string? Person { get; set; }
|
||||||
|
|
||||||
public Guid[] PersonIds { get; set; }
|
public Guid[] PersonIds { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user