1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-10 23:29:53 +02:00

Fixed: Sorting queue by size

This commit is contained in:
Bogdan 2023-06-21 05:16:54 +03:00 committed by GitHub
parent 5601a94016
commit e2f27e0c61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -233,6 +233,8 @@ public PagingResource<QueueResource> GetQueue(bool includeUnknownSeriesItems = f
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));