check tomato rating for -1

pull/702/head
Luke Pulverenti 12 years ago
parent 01fc446427
commit 97481b72dc

@ -150,7 +150,9 @@ namespace MediaBrowser.Providers.Movies
int tomatoMeter; 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; item.CriticRating = tomatoMeter;
} }

Loading…
Cancel
Save