Fixed: Queue failing to load if column was sorted by episode air date or title

#5257
This commit is contained in:
Mark McDowall 2022-12-07 19:03:43 -08:00
parent 1b90fbcf7d
commit 7675b4bc3b
1 changed files with 3 additions and 0 deletions

View File

@ -189,10 +189,13 @@ namespace Sonarr.Api.V3.Queue
return q => q.Title;
case "episode":
return q => q.Episode;
case "episode.airDateUtc":
case "episodes.airDateUtc":
return q => q.Episode?.AirDateUtc ?? DateTime.MinValue;
case "episode.title":
case "episodes.title":
return q => q.Episode?.Title ?? string.Empty;
case "language":
case "languages":
return q => q.Languages;
case "quality":