mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
Move GetNfoConfiguration to LiveTvConfigurationExtensions
This commit is contained in:
parent
31f285480a
commit
3beb10747f
@ -1,4 +1,5 @@
|
||||
using MediaBrowser.Common.Configuration;
|
||||
using MediaBrowser.Model.Configuration;
|
||||
using MediaBrowser.Model.LiveTv;
|
||||
|
||||
namespace Jellyfin.LiveTv.Configuration;
|
||||
@ -15,4 +16,12 @@ public static class LiveTvConfigurationExtensions
|
||||
/// <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");
|
||||
}
|
||||
|
@ -1,19 +0,0 @@
|
||||
using MediaBrowser.Common.Configuration;
|
||||
using MediaBrowser.Model.Configuration;
|
||||
|
||||
namespace Jellyfin.LiveTv.EmbyTV
|
||||
{
|
||||
/// <summary>
|
||||
/// Class containing extension methods for working with the nfo configuration.
|
||||
/// </summary>
|
||||
public static class NfoConfigurationExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the nfo configuration.
|
||||
/// </summary>
|
||||
/// <param name="configurationManager">The configuration manager.</param>
|
||||
/// <returns>The nfo configuration.</returns>
|
||||
public static XbmcMetadataOptions GetNfoConfiguration(this IConfigurationManager configurationManager)
|
||||
=> configurationManager.GetConfiguration<XbmcMetadataOptions>("xbmcmetadata");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user