From 7675b4bc3b6857db825ca2d3dbf34cad1268fb8b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 7 Dec 2022 19:03:43 -0800 Subject: [PATCH] Fixed: Queue failing to load if column was sorted by episode air date or title #5257 --- src/Sonarr.Api.V3/Queue/QueueController.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Sonarr.Api.V3/Queue/QueueController.cs b/src/Sonarr.Api.V3/Queue/QueueController.cs index ce8b14e12..4925b9618 100644 --- a/src/Sonarr.Api.V3/Queue/QueueController.cs +++ b/src/Sonarr.Api.V3/Queue/QueueController.cs @@ -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":