Fix sorting queue items by size

This commit is contained in:
Bogdan 2023-06-14 04:46:00 +03:00
parent b0f56e2840
commit 5d65b4cae4
1 changed files with 2 additions and 0 deletions

View File

@ -223,6 +223,8 @@ namespace Radarr.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));