mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-05 22:02:53 +01:00
3.2.12.2
This commit is contained in:
@@ -77,6 +77,7 @@
|
||||
<Compile Include="IO\MemoryStreamProvider.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SystemEvents.cs" />
|
||||
<Compile Include="UpdateLevelHelper.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Emby.Drawing.ImageMagick\Emby.Drawing.ImageMagick.csproj">
|
||||
|
||||
27
MediaBrowser.Server.Startup.Common/UpdateLevelHelper.cs
Normal file
27
MediaBrowser.Server.Startup.Common/UpdateLevelHelper.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Configuration;
|
||||
using MediaBrowser.Common.Configuration;
|
||||
using MediaBrowser.Model.Updates;
|
||||
|
||||
namespace MediaBrowser.Server.Startup.Common
|
||||
{
|
||||
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