mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-02-22 04:22:50 +00:00
update main projects
This commit is contained in:
25
Emby.Server.Core/UpdateLevelHelper.cs
Normal file
25
Emby.Server.Core/UpdateLevelHelper.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user