- License the project under GPL-3.0-or-later (LICENSE + SPDX headers). - CI workflow builds every push and pull request and checks manifest.json. - Release workflow: an annotated v* tag builds that version, creates a Gitea release with the zip attached and adds it to manifest.json. - Release zips now live in Gitea releases instead of dist/; build.sh is a local test build only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
699 B
C#
19 lines
699 B
C#
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
using MediaBrowser.Controller;
|
|
using MediaBrowser.Controller.Plugins;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
namespace Jellyfin.Plugin.LightsOffTimer;
|
|
|
|
public class ServiceRegistrator : IPluginServiceRegistrator
|
|
{
|
|
public void RegisterServices(IServiceCollection serviceCollection, IServerApplicationHost applicationHost)
|
|
{
|
|
serviceCollection.AddSingleton<TimerManager>();
|
|
serviceCollection.AddHostedService(sp => sp.GetRequiredService<TimerManager>());
|
|
serviceCollection.AddTransient<IStartupFilter, ScriptInjectionStartupFilter>();
|
|
}
|
|
}
|