mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
This commit is contained in:
commit
405e38280b
1 changed files with 2 additions and 2 deletions
|
@ -363,8 +363,8 @@ namespace MediaBrowser.Controller.Providers
|
|||
if (!string.IsNullOrWhiteSpace(rating))
|
||||
{
|
||||
float val;
|
||||
|
||||
if (float.TryParse(rating, out val))
|
||||
// All external meta is saving this as '.' for decimal I believe...but just to be sure
|
||||
if (float.TryParse(rating.Replace(',','.'), NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out val))
|
||||
{
|
||||
item.CommunityRating = val;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue