Files
blackBarRemover/JellyfinPlugin/PluginServiceRegistrator.cs
T
karol 9159d8f8d7
Build and Release Plugin / release (push) Failing after 17s
Add Force Rescan All Black Bars scheduled task
2026-09-17 15:45:57 +02:00

22 lines
968 B
C#

using MediaBrowser.Controller.Plugins;
using Microsoft.Extensions.DependencyInjection;
using JellyfinPlugin.Tasks;
namespace JellyfinPlugin
{
public class PluginServiceRegistrator : IPluginServiceRegistrator
{
public void RegisterServices(IServiceCollection serviceCollection, MediaBrowser.Controller.IServerApplicationHost applicationHost)
{
// Rejestracja serwisów tła
serviceCollection.AddHostedService<HtmlPatcher>();
serviceCollection.AddHostedService<WrapperGenerator>();
serviceCollection.AddHostedService<LibraryMonitor>();
// W Jellyfin 10.9+ zadania harmonogramu czasami trzeba jawnie rejestrować jeśli refleksja ich nie wychwyci
serviceCollection.AddScoped<MediaBrowser.Model.Tasks.IScheduledTask, LibraryRetroactiveScanTask>();
serviceCollection.AddScoped<MediaBrowser.Model.Tasks.IScheduledTask, LibraryForceRescanTask>();
}
}
}