فهرست منبع

Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser

Luke Pulverenti 12 سال پیش
والد
کامیت
405e38280b
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      MediaBrowser.Controller/Providers/BaseItemXmlParser.cs

+ 2 - 2
MediaBrowser.Controller/Providers/BaseItemXmlParser.cs

@@ -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;
                             }