Use original name for MusicAritist matching (#15689)

This commit is contained in:
gnattu
2025-12-06 10:30:02 +08:00
committed by GitHub
parent 636908fc4d
commit 4c5a3fbff3
3 changed files with 12 additions and 2 deletions

View File

@@ -1930,8 +1930,15 @@ public sealed class BaseItemRepository
if (!string.IsNullOrWhiteSpace(filter.Name))
{
var cleanName = GetCleanValue(filter.Name);
baseQuery = baseQuery.Where(e => e.CleanName == cleanName);
if (filter.UseRawName == true)
{
baseQuery = baseQuery.Where(e => e.Name == filter.Name);
}
else
{
var cleanName = GetCleanValue(filter.Name);
baseQuery = baseQuery.Where(e => e.CleanName == cleanName);
}
}
// These are the same, for now