check tomato rating for -1
This commit is contained in:
parent
01fc446427
commit
97481b72dc
|
@ -150,7 +150,9 @@ namespace MediaBrowser.Providers.Movies
|
|||
|
||||
int tomatoMeter;
|
||||
|
||||
if (!string.IsNullOrEmpty(result.tomatoMeter) && int.TryParse(result.tomatoMeter, NumberStyles.Integer, UsCulture, out tomatoMeter))
|
||||
if (!string.IsNullOrEmpty(result.tomatoMeter)
|
||||
&& int.TryParse(result.tomatoMeter, NumberStyles.Integer, UsCulture, out tomatoMeter)
|
||||
&& tomatoMeter >= 0)
|
||||
{
|
||||
item.CriticRating = tomatoMeter;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user