浏览代码

Parse runtime with us culture

Luke Pulverenti 12 年之前
父节点
当前提交
60db673e45
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      MediaBrowser.Controller/Providers/BaseItemXmlParser.cs

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

@@ -224,7 +224,7 @@ namespace MediaBrowser.Controller.Providers
                         if (!string.IsNullOrWhiteSpace(text))
                         if (!string.IsNullOrWhiteSpace(text))
                         {
                         {
                             int runtime;
                             int runtime;
-                            if (int.TryParse(text.Split(' ')[0], out runtime))
+                            if (int.TryParse(text.Split(' ')[0], NumberStyles.Integer, _usCulture, out runtime))
                             {
                             {
                                 // For audio and video don't replace ffmpeg data
                                 // For audio and video don't replace ffmpeg data
                                 if (item is Video || item is Audio)
                                 if (item is Video || item is Audio)