Fixed: Sorting of queue by artist title when unknown items are included

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
pull/1807/head
Qstick 4 years ago
parent 6657777153
commit d61a6852b2

@ -119,15 +119,15 @@ namespace Lidarr.Api.V1.Queue
case "status": case "status":
return q => q.Status; return q => q.Status;
case "artists.sortName": case "artists.sortName":
return q => q.Artist?.SortName; return q => q.Artist?.SortName ?? string.Empty;
case "title": case "title":
return q => q.Title; return q => q.Title;
case "album": case "album":
return q => q.Album; return q => q.Album;
case "albums.title": case "albums.title":
return q => q.Album?.Title; return q => q.Album?.Title ?? string.Empty;
case "album.releaseDate": case "album.releaseDate":
return q => q.Album?.ReleaseDate; return q => q.Album?.ReleaseDate ?? DateTime.MinValue;
case "quality": case "quality":
return q => q.Quality; return q => q.Quality;
case "progress": case "progress":

Loading…
Cancel
Save