From b104c5f707e4f327172a5862b35b1322ebf5b152 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 9 Apr 2013 22:28:24 -0400 Subject: [PATCH] added play/resume menu to detail page --- .../MediaEncoder/MediaEncoder.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Server.Implementations/MediaEncoder/MediaEncoder.cs b/MediaBrowser.Server.Implementations/MediaEncoder/MediaEncoder.cs index 05b791ff4..1fd7e213a 100644 --- a/MediaBrowser.Server.Implementations/MediaEncoder/MediaEncoder.cs +++ b/MediaBrowser.Server.Implementations/MediaEncoder/MediaEncoder.cs @@ -1,4 +1,5 @@ -using MediaBrowser.Common.Configuration; +using System.Globalization; +using MediaBrowser.Common.Configuration; using MediaBrowser.Common.IO; using MediaBrowser.Common.MediaInfo; using MediaBrowser.Model.Entities; @@ -427,6 +428,8 @@ namespace MediaBrowser.Server.Implementations.MediaEncoder return result; } + protected readonly CultureInfo UsCulture = new CultureInfo("en-US"); + /// /// Adds the chapters. /// @@ -459,7 +462,7 @@ namespace MediaBrowser.Server.Implementations.MediaEncoder double seconds; - if (double.TryParse(subString, out seconds)) + if (double.TryParse(subString, NumberStyles.Any, UsCulture, out seconds)) { lastChapter = new ChapterInfo {