mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 18:42:52 -07:00
26 lines
837 B
C#
26 lines
837 B
C#
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;
|
|
}
|
|
}
|
|
}
|