ca9a167ad5
This reverts commit 29ee3e0bc861d128f4f691d7eb8d159da28eab43.
23 lines
823 B
C#
23 lines
823 B
C#
using ConfusedPolarBear.Plugin.IntroSkipper.Providers;
|
|
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>();
|
|
serviceCollection.AddHostedService<AutoSkipCredits>();
|
|
serviceCollection.AddHostedService<Entrypoint>();
|
|
serviceCollection.AddSingleton<IMediaSegmentProvider, SegmentProvider>();
|
|
}
|
|
}
|
|
}
|