The Free Software Media System - Server Backend & API
use int.Parse
cvium4d7c1fbdca44
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.csindex 5dc8c90d44..e25d291226 100644--- a/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs+++ b/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs@@ -126,11 +126,11 @@ namespace Jellyfin.Server.Migrations.RoutinesShowSidebar = dto.ShowSidebar,ScrollDirection = dto.ScrollDirection,ChromecastVersion = chromecastVersion,- SkipForwardLength = dto.CustomPrefs.TryGetValue("skipForwardLength", out var length) && !string.IsNullOrEmpty(length)- ? int.Parse(length, CultureInfo.InvariantCulture)+ SkipForwardLength = dto.CustomPrefs.TryGetValue("skipForwardLength", out var length) && int.TryParse(length, out var skipForwardLength)+ ? skipForwardLength: 30000,- SkipBackwardLength = dto.CustomPrefs.TryGetValue("skipBackLength", out length) && !string.IsNullOrEmpty(length)- ? int.Parse(length, CultureInfo.InvariantCulture)+ SkipBackwardLength = dto.CustomPrefs.TryGetValue("skipBackLength", out length) && !string.IsNullOrEmpty(length) && int.TryParse(length, out var skipBackwardLength)+ ? skipBackwardLength: 10000,EnableNextVideoInfoOverlay = dto.CustomPrefs.TryGetValue("enableNextVideoInfoOverlay", out var enabled) && !string.IsNullOrEmpty(enabled)? bool.Parse(enabled)