mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-08 20:38:24 +02:00
added play/resume menu to detail page
This commit is contained in:
parent
dba8c8d230
commit
b104c5f707
1 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
using MediaBrowser.Common.Configuration;
|
using System.Globalization;
|
||||||
|
using MediaBrowser.Common.Configuration;
|
||||||
using MediaBrowser.Common.IO;
|
using MediaBrowser.Common.IO;
|
||||||
using MediaBrowser.Common.MediaInfo;
|
using MediaBrowser.Common.MediaInfo;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
|
@ -427,6 +428,8 @@ namespace MediaBrowser.Server.Implementations.MediaEncoder
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected readonly CultureInfo UsCulture = new CultureInfo("en-US");
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Adds the chapters.
|
/// Adds the chapters.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -459,7 +462,7 @@ namespace MediaBrowser.Server.Implementations.MediaEncoder
|
||||||
|
|
||||||
double seconds;
|
double seconds;
|
||||||
|
|
||||||
if (double.TryParse(subString, out seconds))
|
if (double.TryParse(subString, NumberStyles.Any, UsCulture, out seconds))
|
||||||
{
|
{
|
||||||
lastChapter = new ChapterInfo
|
lastChapter = new ChapterInfo
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue