| | | 1 | | using MediaBrowser.Common.Configuration; |
| | | 2 | | using MediaBrowser.Model.Configuration; |
| | | 3 | | using MediaBrowser.Model.LiveTv; |
| | | 4 | | |
| | | 5 | | namespace Jellyfin.LiveTv.Configuration; |
| | | 6 | | |
| | | 7 | | /// <summary> |
| | | 8 | | /// <see cref="IConfigurationManager"/> extensions for Live TV. |
| | | 9 | | /// </summary> |
| | | 10 | | public static class LiveTvConfigurationExtensions |
| | | 11 | | { |
| | | 12 | | /// <summary> |
| | | 13 | | /// Gets the <see cref="LiveTvOptions"/>. |
| | | 14 | | /// </summary> |
| | | 15 | | /// <param name="configurationManager">The <see cref="IConfigurationManager"/>.</param> |
| | | 16 | | /// <returns>The <see cref="LiveTvOptions"/>.</returns> |
| | | 17 | | public static LiveTvOptions GetLiveTvConfiguration(this IConfigurationManager configurationManager) |
| | 98 | 18 | | => configurationManager.GetConfiguration<LiveTvOptions>("livetv"); |
| | | 19 | | |
| | | 20 | | /// <summary> |
| | | 21 | | /// Gets the <see cref="XbmcMetadataOptions"/>. |
| | | 22 | | /// </summary> |
| | | 23 | | /// <param name="configurationManager">The <see cref="IConfigurationManager"/>.</param> |
| | | 24 | | /// <returns>The <see cref="XbmcMetadataOptions"/>.</returns> |
| | | 25 | | public static XbmcMetadataOptions GetNfoConfiguration(this IConfigurationManager configurationManager) |
| | 0 | 26 | | => configurationManager.GetConfiguration<XbmcMetadataOptions>("xbmcmetadata"); |
| | | 27 | | } |