Check rating name for "audience"

This commit is contained in:
David 2021-01-20 20:32:45 +01:00
parent 262c6ae249
commit cf9a03790b

View File

@ -941,7 +941,9 @@ namespace MediaBrowser.XbmcMetadata.Parsers
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.OrdinalIgnoreCase))
if (ratingName != null &&
ratingName.Contains("tomato", StringComparison.OrdinalIgnoreCase) &&
!ratingName.Contains("audience", StringComparison.OrdinalIgnoreCase))
{
item.CriticRating = ratingValue;
}