diff --git a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs index 6f0006832b..f1d6b6388d 100644 --- a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs +++ b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs @@ -126,6 +126,7 @@ public class DisplayPreferencesController : BaseJellyfinApiController HomeSectionType.LiveTv, HomeSectionType.NextUp, HomeSectionType.LatestMedia, + HomeSectionType.LatestRelease, HomeSectionType.None, }; diff --git a/Jellyfin.Data/Enums/HomeSectionType.cs b/Jellyfin.Data/Enums/HomeSectionType.cs index 9bcd097dc6..7809ba3ddf 100644 --- a/Jellyfin.Data/Enums/HomeSectionType.cs +++ b/Jellyfin.Data/Enums/HomeSectionType.cs @@ -1,4 +1,4 @@ -namespace Jellyfin.Data.Enums +namespace Jellyfin.Data.Enums { /// /// An enum representing the different options for the home screen sections. @@ -53,6 +53,11 @@ /// /// Continue Reading. /// - ResumeBook = 9 + ResumeBook = 9, + + /// + /// Latest Release. + /// + LatestRelease = 10 } } diff --git a/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs index 249b39ae4b..54ed4938e6 100644 --- a/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs +++ b/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -146,7 +146,7 @@ namespace Jellyfin.Server.Migrations.Routines dto.CustomPrefs.Remove("dashboardtheme"); dto.CustomPrefs.Remove("tvhome"); - for (int i = 0; i < 7; i++) + for (int i = 0; i < defaults.Length; i++) { var key = "homesection" + i; dto.CustomPrefs.TryGetValue(key, out var homeSection);