From e2f27e0c619943c666da31d053768173a17138fe Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 21 Jun 2023 05:16:54 +0300 Subject: [PATCH] Fixed: Sorting queue by size --- src/Sonarr.Api.V3/Queue/QueueController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Sonarr.Api.V3/Queue/QueueController.cs b/src/Sonarr.Api.V3/Queue/QueueController.cs index ed3a2c2ba..e3c2cb452 100644 --- a/src/Sonarr.Api.V3/Queue/QueueController.cs +++ b/src/Sonarr.Api.V3/Queue/QueueController.cs @@ -233,6 +233,8 @@ namespace Sonarr.Api.V3.Queue return q => q.Languages; case "quality": return q => q.Quality; + case "size": + return q => q.Size; case "progress": // Avoid exploding if a download's size is 0 return q => 100 - (q.Sizeleft / Math.Max(q.Size * 100, 1));