The Free Software Media System - Server Backend & API
Removed RemoveOldPlugins configuration flag (#13102)
RealGreenDragonf1e020c0b061
diff --git a/Emby.Server.Implementations/Plugins/PluginManager.cs b/Emby.Server.Implementations/Plugins/PluginManager.csindex e7323d9d05..4c32d57179 100644--- a/Emby.Server.Implementations/Plugins/PluginManager.cs+++ b/Emby.Server.Implementations/Plugins/PluginManager.cs@@ -785,30 +785,27 @@ namespace Emby.Server.Implementations.Pluginsvar cleaned = false;var path = entry.Path;- if (_config.RemoveOldPlugins)+ // Attempt a cleanup of old folders.+ try{- // Attempt a cleanup of old folders.- try- {- _logger.LogDebug("Deleting {Path}", path);- Directory.Delete(path, true);- cleaned = true;- }+ _logger.LogDebug("Deleting {Path}", path);+ Directory.Delete(path, true);+ cleaned = true;+ }#pragma warning disable CA1031 // Do not catch general exception types- catch (Exception e)+ catch (Exception e)#pragma warning restore CA1031 // Do not catch general exception types- {- _logger.LogWarning(e, "Unable to delete {Path}", path);- }+ {+ _logger.LogWarning(e, "Unable to delete {Path}", path);+ }- if (cleaned)- {- versions.RemoveAt(x);- }- else- {- ChangePluginState(entry, PluginStatus.Deleted);- }+ if (cleaned)+ {+ versions.RemoveAt(x);+ }+ else+ {+ ChangePluginState(entry, PluginStatus.Deleted);}}diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.csindex 5ad588200b..bc4e6ef735 100644--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs@@ -243,11 +243,6 @@ public class ServerConfiguration : BaseApplicationConfiguration/// </summary>public int LibraryMetadataRefreshConcurrency { get; set; }- /// <summary>- /// Gets or sets a value indicating whether older plugins should automatically be deleted from the plugin folder.- /// </summary>- public bool RemoveOldPlugins { get; set; }-/// <summary>/// Gets or sets a value indicating whether clients should be allowed to upload logs./// </summary>