mirror of
https://github.com/Readarr/Readarr
synced 2025-12-16 05:12:42 +01:00
Fix sorting queue items by size
This commit is contained in:
parent
595efd498e
commit
3a0ca45aa9
1 changed files with 2 additions and 0 deletions
|
|
@ -189,6 +189,8 @@ public PagingResource<QueueResource> GetQueue(bool includeUnknownAuthorItems = f
|
|||
return q => q.Book?.ReleaseDate ?? DateTime.MinValue;
|
||||
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 a new issue