mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-05 21:37:10 -04:00
Migrate skip lengths.
This commit is contained in:
parent
629ffe395f
commit
0d13d830bb
@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
@ -88,7 +89,13 @@ namespace Jellyfin.Server.Migrations.Routines
|
|||||||
RememberIndexing = dto.RememberIndexing,
|
RememberIndexing = dto.RememberIndexing,
|
||||||
RememberSorting = dto.RememberSorting,
|
RememberSorting = dto.RememberSorting,
|
||||||
ScrollDirection = dto.ScrollDirection,
|
ScrollDirection = dto.ScrollDirection,
|
||||||
ChromecastVersion = chromecastVersion
|
ChromecastVersion = chromecastVersion,
|
||||||
|
SkipForwardLength = dto.CustomPrefs.TryGetValue("skipForwardLength", out var length)
|
||||||
|
? int.Parse(length, CultureInfo.InvariantCulture)
|
||||||
|
: 30000,
|
||||||
|
SkipBackwardLength = dto.CustomPrefs.TryGetValue("skipBackLength", out length)
|
||||||
|
? int.Parse(length, CultureInfo.InvariantCulture)
|
||||||
|
: 30000
|
||||||
};
|
};
|
||||||
|
|
||||||
for (int i = 0; i < 7; i++)
|
for (int i = 0; i < 7; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user