2024-03-22 23:41:58 +01:00
|
|
|
using MediaBrowser.Controller;
|
|
|
|
using MediaBrowser.Controller.Plugins;
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
namespace ConfusedPolarBear.Plugin.IntroSkipper
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Register Intro Skipper services.
|
|
|
|
/// </summary>
|
|
|
|
public class PluginServiceRegistrator : IPluginServiceRegistrator
|
|
|
|
{
|
|
|
|
/// <inheritdoc />
|
|
|
|
public void RegisterServices(IServiceCollection serviceCollection, IServerApplicationHost applicationHost)
|
|
|
|
{
|
|
|
|
serviceCollection.AddHostedService<AutoSkip>();
|
2024-04-11 16:58:37 +02:00
|
|
|
serviceCollection.AddHostedService<Entrypoint>();
|
2024-03-22 23:41:58 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|