aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreenback <jimcartlidge@yahoo.co.uk>2020-11-19 14:40:06 +0000
committerGreenback <jimcartlidge@yahoo.co.uk>2020-11-19 14:40:06 +0000
commit31980e6f87543314d041d9ef4cc38356f752fb70 (patch)
treea6a277774e6ead4b5c5fddbfd3aa0ef5c2fecc59
parent1df58fbaa0b002a75c3b0d9f21b51461a2d9cd69 (diff)
Fixed issue with plugins being deleted.
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs5
-rw-r--r--Emby.Server.Implementations/Plugins/PluginManifest.cs5
2 files changed, 3 insertions, 7 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index 17b99c858..cba9afb98 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -999,7 +999,7 @@ namespace Emby.Server.Implementations
var versions = new List<LocalPlugin>();
if (!Directory.Exists(path))
{
- // Plugin path doesn't exist, don't try to enumerate subfolders.
+ // Plugin path doesn't exist, don't try to enumerate sub-folders.
return Enumerable.Empty<LocalPlugin>();
}
@@ -1070,7 +1070,6 @@ namespace Emby.Server.Implementations
if (!string.IsNullOrEmpty(lastName) && cleanup)
{
// Attempt a cleanup of old folders.
- versions.RemoveAt(x);
try
{
Logger.LogDebug("Deleting {Path}", versions[x].Path);
@@ -1080,6 +1079,8 @@ namespace Emby.Server.Implementations
{
Logger.LogWarning(e, "Unable to delete {Path}", versions[x].Path);
}
+
+ versions.RemoveAt(x);
}
}
diff --git a/Emby.Server.Implementations/Plugins/PluginManifest.cs b/Emby.Server.Implementations/Plugins/PluginManifest.cs
index 63cad8271..33762791b 100644
--- a/Emby.Server.Implementations/Plugins/PluginManifest.cs
+++ b/Emby.Server.Implementations/Plugins/PluginManifest.cs
@@ -56,10 +56,5 @@ namespace Emby.Server.Implementations.Plugins
/// Gets or sets the Version number of the plugin.
/// </summary>
public string Version { get; set; }
-
- /// <summary>
- /// Gets or sets the Repository where the plugin originated.
- /// </summary>
- public string Repository { get; set; }
}
}