TmdbUtils: Use ordinal string compare
This commit is contained in:
parent
360d80c873
commit
e128b6d997
|
@ -63,19 +63,19 @@ namespace MediaBrowser.Providers.Plugins.Tmdb
|
|||
/// <returns>The Jellyfin person type.</returns>
|
||||
public static string MapCrewToPersonType(Crew crew)
|
||||
{
|
||||
if (crew.Department.Equals("production", StringComparison.InvariantCultureIgnoreCase)
|
||||
&& crew.Job.Contains("director", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (crew.Department.Equals("production", StringComparison.OrdinalIgnoreCase)
|
||||
&& crew.Job.Contains("director", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return PersonType.Director;
|
||||
}
|
||||
|
||||
if (crew.Department.Equals("production", StringComparison.InvariantCultureIgnoreCase)
|
||||
&& crew.Job.Contains("producer", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (crew.Department.Equals("production", StringComparison.OrdinalIgnoreCase)
|
||||
&& crew.Job.Contains("producer", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return PersonType.Producer;
|
||||
}
|
||||
|
||||
if (crew.Department.Equals("writing", StringComparison.InvariantCultureIgnoreCase))
|
||||
if (crew.Department.Equals("writing", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return PersonType.Writer;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user