diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-04-09 21:51:36 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-04-09 21:51:36 -0400 |
| commit | 34c5aab607fb5d9240a6286747a70a0b448e019b (patch) | |
| tree | e1c70188b360d65f1ef6d654aa2d6a82ebb98d0b /Emby.Server.Implementations/Updates/InstallationManager.cs | |
| parent | e56faea17a9c300299a6b088ca399abe4351b472 (diff) | |
3.2.12.2
Diffstat (limited to 'Emby.Server.Implementations/Updates/InstallationManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Updates/InstallationManager.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Updates/InstallationManager.cs b/Emby.Server.Implementations/Updates/InstallationManager.cs index a13dd0569..840c7ce0d 100644 --- a/Emby.Server.Implementations/Updates/InstallationManager.cs +++ b/Emby.Server.Implementations/Updates/InstallationManager.cs @@ -270,9 +270,14 @@ namespace Emby.Server.Implementations.Updates } } + private PackageVersionClass GetSystemUpdateLevel() + { + return _applicationHost.SystemUpdateLevel; + } + private TimeSpan GetCacheLength() { - switch (_config.CommonConfiguration.SystemUpdateLevel) + switch (GetSystemUpdateLevel()) { case PackageVersionClass.Beta: return TimeSpan.FromMinutes(30); @@ -424,10 +429,12 @@ namespace Emby.Server.Implementations.Updates .ToList(); } + var systemUpdateLevel = GetSystemUpdateLevel(); + // Figure out what needs to be installed var packages = plugins.Select(p => { - var latestPluginInfo = GetLatestCompatibleVersion(catalog, p.Name, p.Id.ToString(), applicationVersion, _config.CommonConfiguration.SystemUpdateLevel); + var latestPluginInfo = GetLatestCompatibleVersion(catalog, p.Name, p.Id.ToString(), applicationVersion, systemUpdateLevel); return latestPluginInfo != null && GetPackageVersion(latestPluginInfo) > p.Version ? latestPluginInfo : null; |
