aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Updates
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2025-10-27 15:43:26 -0400
committerBond_009 <bond.009@outlook.com>2025-10-27 15:43:26 -0400
commit4dc826644d213ee47f4181009be3c928448b0879 (patch)
tree569775dc6495f808096dfb780afc6b926703d63d /Emby.Server.Implementations/Updates
parent0f21222a0c873b9e3e258ec6c3ed32278b41614f (diff)
Backport pull request #15197 from jellyfin/release-10.11.z
Filter plugins by id instead of name Original-merge: 5691eee4f16402dfe528787666eef13678faaba0 Merged-by: crobibero <cody@robibe.ro> Backported-by: Bond_009 <bond.009@outlook.com>
Diffstat (limited to 'Emby.Server.Implementations/Updates')
-rw-r--r--Emby.Server.Implementations/Updates/InstallationManager.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/Emby.Server.Implementations/Updates/InstallationManager.cs b/Emby.Server.Implementations/Updates/InstallationManager.cs
index 678475b31..5ff400160 100644
--- a/Emby.Server.Implementations/Updates/InstallationManager.cs
+++ b/Emby.Server.Implementations/Updates/InstallationManager.cs
@@ -223,15 +223,14 @@ namespace Emby.Server.Implementations.Updates
Guid id = default,
Version? specificVersion = null)
{
- if (name is not null)
- {
- availablePackages = availablePackages.Where(x => x.Name.Equals(name, StringComparison.OrdinalIgnoreCase));
- }
-
if (!id.IsEmpty())
{
availablePackages = availablePackages.Where(x => x.Id.Equals(id));
}
+ else if (name is not null)
+ {
+ availablePackages = availablePackages.Where(x => x.Name.Equals(name, StringComparison.OrdinalIgnoreCase));
+ }
if (specificVersion is not null)
{