diff options
| author | Patrick Barron <barronpm@gmail.com> | 2024-01-12 18:37:14 -0500 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2024-01-12 18:37:14 -0500 |
| commit | ad51f4f95d09f8ed64fed6013a47f87c01fcca5f (patch) | |
| tree | 0ab11535887ac831cc93e28418419732ed2b7ccb /src/Jellyfin.LiveTv/RefreshGuideScheduledTask.cs | |
| parent | 93e51353913348a10958eadaa9a2e82cc95cbeaa (diff) | |
Add LiveTv configuration extension
Diffstat (limited to 'src/Jellyfin.LiveTv/RefreshGuideScheduledTask.cs')
| -rw-r--r-- | src/Jellyfin.LiveTv/RefreshGuideScheduledTask.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/Jellyfin.LiveTv/RefreshGuideScheduledTask.cs b/src/Jellyfin.LiveTv/RefreshGuideScheduledTask.cs index e58296a70..18bd61d99 100644 --- a/src/Jellyfin.LiveTv/RefreshGuideScheduledTask.cs +++ b/src/Jellyfin.LiveTv/RefreshGuideScheduledTask.cs @@ -2,9 +2,9 @@ using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; +using Jellyfin.LiveTv.Configuration; using MediaBrowser.Common.Configuration; using MediaBrowser.Controller.LiveTv; -using MediaBrowser.Model.LiveTv; using MediaBrowser.Model.Tasks; namespace Jellyfin.LiveTv @@ -38,7 +38,7 @@ namespace Jellyfin.LiveTv public string Category => "Live TV"; /// <inheritdoc /> - public bool IsHidden => _liveTvManager.Services.Count == 1 && GetConfiguration().TunerHosts.Length == 0; + public bool IsHidden => _liveTvManager.Services.Count == 1 && _config.GetLiveTvConfiguration().TunerHosts.Length == 0; /// <inheritdoc /> public bool IsEnabled => true; @@ -66,10 +66,5 @@ namespace Jellyfin.LiveTv new TaskTriggerInfo { Type = TaskTriggerInfo.TriggerInterval, IntervalTicks = TimeSpan.FromHours(24).Ticks } }; } - - private LiveTvOptions GetConfiguration() - { - return _config.GetConfiguration<LiveTvOptions>("livetv"); - } } } |
