Remove ',' hack
This commit is contained in:
parent
357429b8ea
commit
262c6ae249
|
@ -938,10 +938,10 @@ namespace MediaBrowser.XbmcMetadata.Parsers
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(val))
|
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 contains tomato --> assume critic rating
|
||||||
if (ratingName != null && ratingName.Contains("tomato", StringComparison.InvariantCultureIgnoreCase))
|
if (ratingName != null && ratingName.Contains("tomato", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
item.CriticRating = ratingValue;
|
item.CriticRating = ratingValue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user