diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-08-04 14:14:16 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-08-04 14:14:16 -0400 |
| commit | feed1c0b7dab20a7cf90df2be89060b06e1df318 (patch) | |
| tree | 91d20fe3b5acdbeb4fc771217c0bf0bc4d31f4e4 | |
| parent | 30710dbe007b60d696cdf28e4bf97a428432124b (diff) | |
add user display lang setting
| -rw-r--r-- | MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EntryPoint.cs | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EntryPoint.cs b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EntryPoint.cs index 713cb9cd3..a297c866a 100644 --- a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EntryPoint.cs +++ b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EntryPoint.cs @@ -1,12 +1,41 @@ -using MediaBrowser.Controller.Plugins; +using MediaBrowser.Common.Configuration; +using MediaBrowser.Common.Security; +using MediaBrowser.Controller.Plugins; +using MediaBrowser.Model.LiveTv; namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV { public class EntryPoint : IServerEntryPoint { - public void Run() + private readonly IConfigurationManager _config; + private readonly ISecurityManager _manager; + + public EntryPoint(IConfigurationManager config, ISecurityManager manager) + { + _config = config; + _manager = manager; + } + + public async void Run() { EmbyTV.Current.Start(); + + if (GetConfiguration().ListingProviders.Count > 0 || GetConfiguration().TunerHosts.Count > 0) + { + try + { + await _manager.GetRegistrationStatus("livetvguide").ConfigureAwait(false); + } + catch + { + + } + } + } + + private LiveTvOptions GetConfiguration() + { + return _config.GetConfiguration<LiveTvOptions>("livetv"); } public void Dispose() |
