use ignorecase
This commit is contained in:
parent
61ac8151ff
commit
4f5a659111
|
@ -301,7 +301,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
|
||||||
|
|
||||||
private void SaveSmartMatchString(string matchString, Series series, AutoOrganizeOptions options)
|
private void SaveSmartMatchString(string matchString, Series series, AutoOrganizeOptions options)
|
||||||
{
|
{
|
||||||
SmartMatchInfo info = options.SmartMatchInfos.FirstOrDefault(i => string.Equals(i.ItemName, series.Name));
|
SmartMatchInfo info = options.SmartMatchInfos.FirstOrDefault(i => string.Equals(i.ItemName, series.Name, StringComparison.OrdinalIgnoreCase));
|
||||||
|
|
||||||
if (info == null)
|
if (info == null)
|
||||||
{
|
{
|
||||||
|
@ -498,7 +498,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
|
||||||
series = _libraryManager.RootFolder
|
series = _libraryManager.RootFolder
|
||||||
.GetRecursiveChildren(i => i is Series)
|
.GetRecursiveChildren(i => i is Series)
|
||||||
.Cast<Series>()
|
.Cast<Series>()
|
||||||
.FirstOrDefault(i => string.Equals(i.Name, info.ItemName));
|
.FirstOrDefault(i => string.Equals(i.Name, info.ItemName, StringComparison.OrdinalIgnoreCase));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user