Merge pull request #734 from Bond-009/culture

Fix more analyzer warnings
This commit is contained in:
Joshua M. Boniface
2019-01-31 21:11:13 -05:00
committed by GitHub
49 changed files with 285 additions and 256 deletions

View File

@@ -615,7 +615,7 @@ namespace MediaBrowser.Controller.Entities
if (!string.IsNullOrEmpty(ForcedSortName))
{
// Need the ToLower because that's what CreateSortName does
_sortName = ModifySortChunks(ForcedSortName).ToLower();
_sortName = ModifySortChunks(ForcedSortName).ToLowerInvariant();
}
else
{
@@ -661,7 +661,7 @@ namespace MediaBrowser.Controller.Entities
return Name.TrimStart();
}
var sortable = Name.Trim().ToLower();
var sortable = Name.Trim().ToLowerInvariant();
foreach (var removeChar in ConfigurationManager.Configuration.SortRemoveCharacters)
{

View File

@@ -305,7 +305,7 @@ namespace MediaBrowser.Controller.Entities
private string GetUserDataKey(string providerId)
{
var key = providerId + "-" + ExtraType.ToString().ToLower();
var key = providerId + "-" + ExtraType.ToString().ToLowerInvariant();
// Make sure different trailers have their own data.
if (RunTimeTicks.HasValue)