mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-29 11:02:14 +01:00
fixes #583 - Add vote count to edit page
This commit is contained in:
@@ -160,7 +160,7 @@ namespace MediaBrowser.Providers.Movies
|
||||
int voteCount;
|
||||
|
||||
if (!string.IsNullOrEmpty(result.imdbVotes)
|
||||
&& int.TryParse(result.imdbVotes, NumberStyles.Integer, UsCulture, out voteCount)
|
||||
&& int.TryParse(result.imdbVotes, NumberStyles.Number, UsCulture, out voteCount)
|
||||
&& voteCount >= 0)
|
||||
{
|
||||
item.VoteCount = voteCount;
|
||||
@@ -169,7 +169,7 @@ namespace MediaBrowser.Providers.Movies
|
||||
float imdbRating;
|
||||
|
||||
if (!string.IsNullOrEmpty(result.imdbRating)
|
||||
&& float.TryParse(result.imdbRating, NumberStyles.Number, UsCulture, out imdbRating)
|
||||
&& float.TryParse(result.imdbRating, NumberStyles.Any, UsCulture, out imdbRating)
|
||||
&& imdbRating >= 0)
|
||||
{
|
||||
item.CommunityRating = imdbRating;
|
||||
|
||||
Reference in New Issue
Block a user