rlauu ca9a167ad5 Revert "Use Jellyfins MediaSegmentType (#344)"
This reverts commit 29ee3e0bc861d128f4f691d7eb8d159da28eab43.
2024-10-16 16:05:59 +02:00

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>();
}
}
}