mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-25 11:13:39 +02:00
Fixed: Sorting queue by size
This commit is contained in:
parent
5601a94016
commit
e2f27e0c61
@ -233,6 +233,8 @@ namespace Sonarr.Api.V3.Queue
|
|||||||
return q => q.Languages;
|
return q => q.Languages;
|
||||||
case "quality":
|
case "quality":
|
||||||
return q => q.Quality;
|
return q => q.Quality;
|
||||||
|
case "size":
|
||||||
|
return q => q.Size;
|
||||||
case "progress":
|
case "progress":
|
||||||
// Avoid exploding if a download's size is 0
|
// Avoid exploding if a download's size is 0
|
||||||
return q => 100 - (q.Sizeleft / Math.Max(q.Size * 100, 1));
|
return q => 100 - (q.Sizeleft / Math.Max(q.Size * 100, 1));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user