2024-10-25 14:33:26 -04:00
|
|
|
// Copyright (C) 2024 Intro-Skipper contributors <intro-skipper.org>
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-only.
|
2024-10-25 13:42:34 -04:00
|
|
|
|
2024-03-22 23:41:58 +01:00
|
|
|
using MediaBrowser.Controller;
|
|
|
|
using MediaBrowser.Controller.Plugins;
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
2024-10-20 13:56:09 +02:00
|
|
|
namespace IntroSkipper
|
2024-03-22 23:41:58 +01:00
|
|
|
{
|
|
|
|
/// <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-03-22 23:41:58 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|