You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using MediaBrowser.Common.Configuration;
|
|
|
|
|
using MediaBrowser.Model.Updates;
|
|
|
|
|
|
|
|
|
|
namespace Emby.Server.Core
|
|
|
|
|
{
|
|
|
|
|
public static class UpdateLevelHelper
|
|
|
|
|
{
|
|
|
|
|
public static PackageVersionClass GetSystemUpdateLevel(IConfigurationManager config)
|
|
|
|
|
{
|
|
|
|
|
return config.CommonConfiguration.SystemUpdateLevel;
|
|
|
|
|
//var configuredValue = ConfigurationManager.AppSettings["SystemUpdateLevel"];
|
|
|
|
|
|
|
|
|
|
//if (string.Equals(configuredValue, "Beta", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
//{
|
|
|
|
|
// return PackageVersionClass.Beta;
|
|
|
|
|
//}
|
|
|
|
|
//if (string.Equals(configuredValue, "Dev", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
//{
|
|
|
|
|
// return PackageVersionClass.Dev;
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
//return PackageVersionClass.Release;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|