diff --git a/Emby.Server.Implementations/Updates/InstallationManager.cs b/Emby.Server.Implementations/Updates/InstallationManager.cs index 630ede667c..fa62c08589 100644 --- a/Emby.Server.Implementations/Updates/InstallationManager.cs +++ b/Emby.Server.Implementations/Updates/InstallationManager.cs @@ -235,7 +235,7 @@ namespace Emby.Server.Implementations.Updates public IEnumerable FilterPackages( IEnumerable availablePackages, string? name = null, - Guid? guid = default, + Guid? id = default, Version? specificVersion = null) { if (name != null) @@ -243,9 +243,9 @@ namespace Emby.Server.Implementations.Updates availablePackages = availablePackages.Where(x => x.Name.Equals(name, StringComparison.OrdinalIgnoreCase)); } - if (guid != Guid.Empty) + if (id != Guid.Empty) { - availablePackages = availablePackages.Where(x => Guid.Parse(x.Id) == guid); + availablePackages = availablePackages.Where(x => Guid.Parse(x.Id) == id); } if (specificVersion != null) @@ -260,11 +260,11 @@ namespace Emby.Server.Implementations.Updates public IEnumerable GetCompatibleVersions( IEnumerable availablePackages, string? name = null, - Guid? guid = default, + Guid? id = default, Version? minVersion = null, Version? specificVersion = null) { - var package = FilterPackages(availablePackages, name, guid, specificVersion).FirstOrDefault(); + var package = FilterPackages(availablePackages, name, id, specificVersion).FirstOrDefault(); // Package not found in repository if (package == null) diff --git a/MediaBrowser.Common/Updates/IInstallationManager.cs b/MediaBrowser.Common/Updates/IInstallationManager.cs index dd9e0cc3f9..4c8a6e959a 100644 --- a/MediaBrowser.Common/Updates/IInstallationManager.cs +++ b/MediaBrowser.Common/Updates/IInstallationManager.cs @@ -41,14 +41,14 @@ namespace MediaBrowser.Common.Updates /// /// The available packages. /// The name of the plugin. - /// The id of the plugin. + /// The id of the plugin. /// The version of the plugin. /// All plugins matching the requirements. IEnumerable FilterPackages( IEnumerable availablePackages, string? name = null, #pragma warning disable CA1720 // Identifier contains type name - Guid? guid = default, + Guid? id = default, #pragma warning restore CA1720 // Identifier contains type name Version? specificVersion = null); @@ -57,7 +57,7 @@ namespace MediaBrowser.Common.Updates /// /// The available packages. /// The name. - /// The guid of the plugin. + /// The id of the plugin. /// The minimum required version of the plugin. /// The specific version of the plugin to install. /// All compatible versions ordered from newest to oldest. @@ -65,7 +65,7 @@ namespace MediaBrowser.Common.Updates IEnumerable availablePackages, string? name = null, #pragma warning disable CA1720 // Identifier contains type name - Guid? guid = default, + Guid? id = default, #pragma warning restore CA1720 // Identifier contains type name Version? minVersion = null, Version? specificVersion = null);