Fixed: Add queue size check to sort to fix #219 (#223)

pull/6/head
Daniel Underwood 7 years ago committed by GitHub
parent df15dbe462
commit 71a0c62fdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -89,7 +89,7 @@ namespace Lidarr.Api.V1.Queue
case "quality":
return q => q.Quality;
case "progress":
return q => 100 - q.Sizeleft / q.Size * 100;
return q => q.Size == 0 ? 0 : 100 - q.Sizeleft / q.Size * 100;
default:
return q => q.Timeleft;
}

Loading…
Cancel
Save