فهرست منبع

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))
                         {
                             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
                                 if (item is Video || item is Audio)