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.
28 lines
1.1 KiB
28 lines
1.1 KiB
using MediaBrowser.Common.Configuration;
|
|
using MediaBrowser.Model.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");
|
|
|
|
/// <summary>
|
|
/// Gets the <see cref="XbmcMetadataOptions"/>.
|
|
/// </summary>
|
|
/// <param name="configurationManager">The <see cref="IConfigurationManager"/>.</param>
|
|
/// <returns>The <see cref="XbmcMetadataOptions"/>.</returns>
|
|
public static XbmcMetadataOptions GetNfoConfiguration(this IConfigurationManager configurationManager)
|
|
=> configurationManager.GetConfiguration<XbmcMetadataOptions>("xbmcmetadata");
|
|
}
|