Browse Source

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>
crobibero 1 week ago
parent
commit
4dc826644d
1 changed files with 4 additions and 5 deletions
  1. 4 5
      Emby.Server.Implementations/Updates/InstallationManager.cs

+ 4 - 5
Emby.Server.Implementations/Updates/InstallationManager.cs

@@ -223,15 +223,14 @@ namespace Emby.Server.Implementations.Updates
             Guid id = default,
             Guid id = default,
             Version? specificVersion = null)
             Version? specificVersion = null)
         {
         {
-            if (name is not null)
-            {
-                availablePackages = availablePackages.Where(x => x.Name.Equals(name, StringComparison.OrdinalIgnoreCase));
-            }
-
             if (!id.IsEmpty())
             if (!id.IsEmpty())
             {
             {
                 availablePackages = availablePackages.Where(x => x.Id.Equals(id));
                 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)
             if (specificVersion is not null)
             {
             {