e37de35445
* Update Entrypoint.cs * Update PluginServiceRegistrator.cs
20 lines
615 B
C#
20 lines
615 B
C#
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<Entrypoint>();
|
|
}
|
|
}
|
|
}
|