Преглед изворни кода

Migrate EnableNextVideoInfoOverlay

Patrick Barron пре 5 година
родитељ
комит
9fcf23bd21
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs

+ 4 - 1
Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs

@@ -95,7 +95,10 @@ namespace Jellyfin.Server.Migrations.Routines
                             : 30000,
                         SkipBackwardLength = dto.CustomPrefs.TryGetValue("skipBackLength", out length)
                             ? int.Parse(length, CultureInfo.InvariantCulture)
-                            : 30000
+                            : 30000,
+                        EnableNextVideoInfoOverlay = dto.CustomPrefs.TryGetValue("enableNextVideoInfoOverlay", out var enabled)
+                            ? bool.Parse(enabled)
+                            : true
                     };
 
                     for (int i = 0; i < 7; i++)