diff options
| author | Bond-009 <bond.009@outlook.com> | 2023-04-04 00:53:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-04 00:53:19 +0200 |
| commit | 22d880662283980dec994cd7d35fe269613bfce3 (patch) | |
| tree | bdc42a7897bc8b7e01c022668b32d4490b870b11 /Jellyfin.Api/Controllers/PluginsController.cs | |
| parent | bb5bf0277ae33fd4668e00bd2f1a85e89aef466a (diff) | |
| parent | 2d24da406d45ec074c52de08cd6737e087102db0 (diff) | |
Merge pull request #9583 from goremykin/use_minby_and_maxby
Diffstat (limited to 'Jellyfin.Api/Controllers/PluginsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/PluginsController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/PluginsController.cs b/Jellyfin.Api/Controllers/PluginsController.cs index 4726cf066..72ad14a28 100644 --- a/Jellyfin.Api/Controllers/PluginsController.cs +++ b/Jellyfin.Api/Controllers/PluginsController.cs @@ -146,7 +146,7 @@ public class PluginsController : BaseJellyfinApiController var plugins = _pluginManager.Plugins.Where(p => p.Id.Equals(pluginId)).ToList(); // Select the un-instanced one first. - var plugin = plugins.FirstOrDefault(p => p.Instance is null) ?? plugins.OrderBy(p => p.Manifest.Status).FirstOrDefault(); + var plugin = plugins.FirstOrDefault(p => p.Instance is null) ?? plugins.MinBy(p => p.Manifest.Status); if (plugin is not null) { |
