浏览代码

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++)