2017-05-24 21:12:55 +02:00
|
|
|
|
using MediaBrowser.Common.Configuration;
|
2017-04-10 03:51:36 +02:00
|
|
|
|
using MediaBrowser.Model.Updates;
|
|
|
|
|
|
2017-05-24 21:12:55 +02:00
|
|
|
|
namespace Emby.Server.Core
|
2017-04-10 03:51:36 +02:00
|
|
|
|
{
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|