mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-24 23:02:44 +00:00
Fix sorting queue items by size
This commit is contained in:
parent
80fccbbe89
commit
6de2f4b171
1 changed files with 2 additions and 0 deletions
|
@ -184,6 +184,8 @@ public PagingResource<QueueResource> GetQueue(bool includeUnknownArtistItems = f
|
|||
return q => q.Album?.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