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; return q => q.Title;
case "episode": case "episode":
return q => q.Episode; return q => q.Episode;
case "episode.airDateUtc":
case "episodes.airDateUtc": case "episodes.airDateUtc":
return q => q.Episode?.AirDateUtc ?? DateTime.MinValue; return q => q.Episode?.AirDateUtc ?? DateTime.MinValue;
case "episode.title":
case "episodes.title": case "episodes.title":
return q => q.Episode?.Title ?? string.Empty; return q => q.Episode?.Title ?? string.Empty;
case "language":
case "languages": case "languages":
return q => q.Languages; return q => q.Languages;
case "quality": case "quality":