2024-10-11 21:08:12 +02:00
|
|
|
using ConfusedPolarBear.Plugin.IntroSkipper.Providers;
|
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-05-13 14:25:52 +02:00
|
|
|
serviceCollection.AddHostedService<AutoSkipCredits>();
|
2024-04-11 16:58:37 +02:00
|
|
|
serviceCollection.AddHostedService<Entrypoint>();
|
2024-10-11 21:08:12 +02:00
|
|
|
serviceCollection.AddSingleton<IMediaSegmentProvider, SegmentProvider>();
|
2024-03-22 23:41:58 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|