add tuner setup to startup wizard

This commit is contained in:
Luke Pulverenti 2015-08-20 16:57:29 -04:00
parent 6dba423c2c
commit a6866fe878

View File

@ -86,7 +86,7 @@ namespace MediaBrowser.Api
public object Get(GetStartupConfiguration request)
{
return new StartupConfiguration
var result = new StartupConfiguration
{
UICulture = _config.Configuration.UICulture,
EnableInternetProviders = _config.Configuration.EnableInternetProviders,
@ -94,6 +94,16 @@ namespace MediaBrowser.Api
MetadataCountryCode = _config.Configuration.MetadataCountryCode,
PreferredMetadataLanguage = _config.Configuration.PreferredMetadataLanguage
};
var tvConfig = GetLiveTVConfiguration();
if (tvConfig.TunerHosts.Count > 0)
{
result.LiveTvTunerPath = tvConfig.TunerHosts[0].Url;
result.LiveTvTunerType = tvConfig.TunerHosts[0].Type;
}
return result;
}
public void Post(UpdateStartupConfiguration request)