- Add LessonsController with GET /Plugins/Lessons/List endpoint - Add LessonStore DI registration in ServiceRegistrator - Add lessonsPage.html embedded resource with grouped lesson listing - Implement IHasWebPages in Plugin for sidebar nav entry - Add ImplicitUsings/Nullable to csproj for net9.0 compatibility - Add Microsoft.AspNetCore.App FrameworkReference for MVC - Fix ServiceRegistrator to match 10.10.x IPluginServiceRegistrator signature
15 lines
486 B
C#
15 lines
486 B
C#
using Jellyfin.Plugin.Lessons.Data;
|
|
using MediaBrowser.Controller;
|
|
using MediaBrowser.Controller.Plugins;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Jellyfin.Plugin.Lessons;
|
|
|
|
public class ServiceRegistrator : IPluginServiceRegistrator
|
|
{
|
|
public void RegisterServices(IServiceCollection services, IServerApplicationHost appHost)
|
|
{
|
|
services.AddSingleton<LessonStore>(sp =>
|
|
new LessonStore("~/.local/share/jellyfin-lessons/lessons.db"));
|
|
}
|
|
}
|