diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-28 13:25:59 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-28 13:25:59 -0400 |
| commit | 405e38280b129a88efcaaa870eb9c4716c090694 (patch) | |
| tree | 31a0e2945fe546d81380b818d46e91684e2cdaf7 | |
| parent | 67044d2759e9895e92be4435e6111a2d1bd50e34 (diff) | |
| parent | 61c4d87a16028c07ee6781869b7896c2691f680c (diff) | |
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
| -rw-r--r-- | MediaBrowser.Controller/Providers/BaseItemXmlParser.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Providers/BaseItemXmlParser.cs b/MediaBrowser.Controller/Providers/BaseItemXmlParser.cs index 8f4d33bb5..337eb9527 100644 --- a/MediaBrowser.Controller/Providers/BaseItemXmlParser.cs +++ b/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; } |
