diff options
Diffstat (limited to 'Emby.Server.Implementations')
| -rw-r--r-- | Emby.Server.Implementations/Plugins/PluginManager.cs | 2 | ||||
| -rw-r--r-- | Emby.Server.Implementations/Updates/InstallationManager.cs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Plugins/PluginManager.cs b/Emby.Server.Implementations/Plugins/PluginManager.cs index f7ad9b9498..392493264c 100644 --- a/Emby.Server.Implementations/Plugins/PluginManager.cs +++ b/Emby.Server.Implementations/Plugins/PluginManager.cs @@ -415,7 +415,7 @@ namespace Emby.Server.Implementations.Plugins TargetAbi = versionInfo.TargetAbi ?? string.Empty, Timestamp = string.IsNullOrEmpty(versionInfo.Timestamp) ? DateTime.MinValue : DateTime.Parse(versionInfo.Timestamp, CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal), Version = versionInfo.Version, - Status = status == PluginStatus.Disabled ? PluginStatus.Disabled : PluginStatus.Active, // Keep disabled state. + Status = status is PluginStatus.Disabled or PluginStatus.Superseded ? status : PluginStatus.Active, // Keep disabled and superseded states. AutoUpdate = true, ImagePath = imagePath }; diff --git a/Emby.Server.Implementations/Updates/InstallationManager.cs b/Emby.Server.Implementations/Updates/InstallationManager.cs index cccdb3e6aa..8fd4b83e78 100644 --- a/Emby.Server.Implementations/Updates/InstallationManager.cs +++ b/Emby.Server.Implementations/Updates/InstallationManager.cs @@ -503,9 +503,9 @@ namespace Emby.Server.Implementations.Updates var plugins = _pluginManager.Plugins; foreach (var plugin in plugins) { - // Don't auto update when plugin marked not to, or when it's disabled or pending removal. + // Don't auto update when plugin marked not to, or when it's disabled, superseded or pending removal. if (plugin.Manifest?.AutoUpdate == false - || plugin.Manifest?.Status is PluginStatus.Disabled or PluginStatus.Deleted) + || plugin.Manifest?.Status is PluginStatus.Disabled or PluginStatus.Superseded or PluginStatus.Deleted) { continue; } |
