Remove ',' hack

This commit is contained in:
David 2021-01-09 15:33:39 +01:00
parent 357429b8ea
commit 262c6ae249

View File

@ -938,10 +938,10 @@ namespace MediaBrowser.XbmcMetadata.Parsers
if (!string.IsNullOrWhiteSpace(val))
{
if (float.TryParse(val.Replace(',', '.'), NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out var ratingValue))
if (float.TryParse(val, NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out var ratingValue))
{
// if ratingName contains tomato --> assume critic rating
if (ratingName != null && ratingName.Contains("tomato", StringComparison.InvariantCultureIgnoreCase))
if (ratingName != null && ratingName.Contains("tomato", StringComparison.OrdinalIgnoreCase))
{
item.CriticRating = ratingValue;
}