initial release

pull/10443/head
herby2212 11 months ago
parent df7032b09e
commit 2e6eced81a

@ -126,6 +126,7 @@ public class DisplayPreferencesController : BaseJellyfinApiController
HomeSectionType.LiveTv,
HomeSectionType.NextUp,
HomeSectionType.LatestMedia,
HomeSectionType.LatestRelease,
HomeSectionType.None,
};

@ -1,4 +1,4 @@
namespace Jellyfin.Data.Enums
namespace Jellyfin.Data.Enums
{
/// <summary>
/// An enum representing the different options for the home screen sections.
@ -53,6 +53,11 @@
/// <summary>
/// Continue Reading.
/// </summary>
ResumeBook = 9
ResumeBook = 9,
/// <summary>
/// Latest Release.
/// </summary>
LatestRelease = 10
}
}

@ -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);

Loading…
Cancel
Save