diff options
| author | Bond-009 <bond.009@outlook.com> | 2023-02-20 11:09:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-20 11:09:54 +0100 |
| commit | 720852f7087e32053407cd849470d3f13f57159c (patch) | |
| tree | a3c8d8aff92aeb5f107b724513a3ed775d71b3be /Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs | |
| parent | 69379d80a1f3352972a80b06815038ee853622eb (diff) | |
| parent | b119c6d868c24212300285c501f43af91b31d404 (diff) | |
Merge pull request #9356 from Bond-009/tryparse
Diffstat (limited to 'Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs')
| -rw-r--r-- | Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs index 4b692d14f..7c4ffdbc0 100644 --- a/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs +++ b/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs @@ -130,7 +130,7 @@ namespace Jellyfin.Server.Migrations.Routines 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.TryParse(length, out var skipBackwardLength) + SkipBackwardLength = dto.CustomPrefs.TryGetValue("skipBackLength", out length) && int.TryParse(length, out var skipBackwardLength) ? skipBackwardLength : 10000, EnableNextVideoInfoOverlay = dto.CustomPrefs.TryGetValue("enableNextVideoInfoOverlay", out var enabled) && !string.IsNullOrEmpty(enabled) |
