mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-23 15:30:56 -04:00
check tomato rating for -1
This commit is contained in:
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…
x
Reference in New Issue
Block a user