mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Fix sorting queue items by size
This commit is contained in:
parent
b0f56e2840
commit
5d65b4cae4
@ -223,6 +223,8 @@ public PagingResource<QueueResource> GetQueue(bool includeUnknownMovieItems = fa
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user