mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
add user display lang setting
This commit is contained in:
parent
30710dbe00
commit
feed1c0b7d
1 changed files with 31 additions and 2 deletions
|
@ -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
|
namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
|
||||||
{
|
{
|
||||||
public class EntryPoint : IServerEntryPoint
|
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();
|
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()
|
public void Dispose()
|
||||||
|
|
Loading…
Reference in a new issue