mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-11-16 03:23:02 -05:00
19 lines
681 B
C#
19 lines
681 B
C#
using MediaBrowser.Common.Configuration;
|
|
using MediaBrowser.Model.LiveTv;
|
|
|
|
namespace Jellyfin.LiveTv.Configuration;
|
|
|
|
/// <summary>
|
|
/// <see cref="IConfigurationManager"/> extensions for Live TV.
|
|
/// </summary>
|
|
public static class LiveTvConfigurationExtensions
|
|
{
|
|
/// <summary>
|
|
/// Gets the <see cref="LiveTvOptions"/>.
|
|
/// </summary>
|
|
/// <param name="configurationManager">The <see cref="IConfigurationManager"/>.</param>
|
|
/// <returns>The <see cref="LiveTvOptions"/>.</returns>
|
|
public static LiveTvOptions GetLiveTvConfiguration(this IConfigurationManager configurationManager)
|
|
=> configurationManager.GetConfiguration<LiveTvOptions>("livetv");
|
|
}
|