mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
update startup wizard
This commit is contained in:
parent
5de40ed147
commit
bd45eb8796
1 changed files with 11 additions and 2 deletions
|
@ -51,14 +51,15 @@ namespace MediaBrowser.Api
|
||||||
private readonly IServerApplicationHost _appHost;
|
private readonly IServerApplicationHost _appHost;
|
||||||
private readonly IUserManager _userManager;
|
private readonly IUserManager _userManager;
|
||||||
private readonly IConnectManager _connectManager;
|
private readonly IConnectManager _connectManager;
|
||||||
private ILiveTvManager _liveTvManager;
|
private readonly ILiveTvManager _liveTvManager;
|
||||||
|
|
||||||
public StartupWizardService(IServerConfigurationManager config, IServerApplicationHost appHost, IUserManager userManager, IConnectManager connectManager)
|
public StartupWizardService(IServerConfigurationManager config, IServerApplicationHost appHost, IUserManager userManager, IConnectManager connectManager, ILiveTvManager liveTvManager)
|
||||||
{
|
{
|
||||||
_config = config;
|
_config = config;
|
||||||
_appHost = appHost;
|
_appHost = appHost;
|
||||||
_userManager = userManager;
|
_userManager = userManager;
|
||||||
_connectManager = connectManager;
|
_connectManager = connectManager;
|
||||||
|
_liveTvManager = liveTvManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Post(ReportStartupWizardComplete request)
|
public void Post(ReportStartupWizardComplete request)
|
||||||
|
@ -103,6 +104,12 @@ namespace MediaBrowser.Api
|
||||||
result.LiveTvTunerType = tvConfig.TunerHosts[0].Type;
|
result.LiveTvTunerType = tvConfig.TunerHosts[0].Type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tvConfig.ListingProviders.Count > 0)
|
||||||
|
{
|
||||||
|
result.LiveTvGuideProviderId = tvConfig.ListingProviders[0].Id;
|
||||||
|
result.LiveTvGuideProviderType = tvConfig.ListingProviders[0].Type;
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -213,6 +220,8 @@ namespace MediaBrowser.Api
|
||||||
public string PreferredMetadataLanguage { get; set; }
|
public string PreferredMetadataLanguage { get; set; }
|
||||||
public string LiveTvTunerType { get; set; }
|
public string LiveTvTunerType { get; set; }
|
||||||
public string LiveTvTunerPath { get; set; }
|
public string LiveTvTunerPath { get; set; }
|
||||||
|
public string LiveTvGuideProviderId { get; set; }
|
||||||
|
public string LiveTvGuideProviderType { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class StartupInfo
|
public class StartupInfo
|
||||||
|
|
Loading…
Reference in a new issue