mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-01 13:28:27 +01:00
improve name matching
This commit is contained in:
@@ -926,10 +926,8 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
|
||||
if (isArtist)
|
||||
{
|
||||
var validFilename = _fileSystem.GetValidFilename(name).Trim();
|
||||
|
||||
var existing = RootFolder
|
||||
.GetRecursiveChildren(i => i is T && string.Equals(_fileSystem.GetValidFilename(i.Name).Trim(), validFilename, StringComparison.OrdinalIgnoreCase))
|
||||
.GetRecursiveChildren(i => i is T && NameExtensions.AreEqual(i.Name, name))
|
||||
.Cast<T>()
|
||||
.FirstOrDefault();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user