You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
912 B
26 lines
912 B
using Jellyfin.LiveTv.Channels;
|
|
using MediaBrowser.Controller.Channels;
|
|
using MediaBrowser.Controller.LiveTv;
|
|
using MediaBrowser.Model.IO;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Jellyfin.LiveTv.Extensions;
|
|
|
|
/// <summary>
|
|
/// Live TV extensions for <see cref="IServiceCollection"/>.
|
|
/// </summary>
|
|
public static class LiveTvServiceCollectionExtensions
|
|
{
|
|
/// <summary>
|
|
/// Adds Live TV services to the <see cref="IServiceCollection"/>.
|
|
/// </summary>
|
|
/// <param name="services">The <see cref="IServiceCollection"/> to add services to.</param>
|
|
public static void AddLiveTvServices(this IServiceCollection services)
|
|
{
|
|
services.AddSingleton<LiveTvDtoService>();
|
|
services.AddSingleton<ILiveTvManager, LiveTvManager>();
|
|
services.AddSingleton<IChannelManager, ChannelManager>();
|
|
services.AddSingleton<IStreamHelper, StreamHelper>();
|
|
}
|
|
}
|