From 31198c627fe23ec86811b3f4ae90f05c693a2fe8 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 2 Dec 2022 22:42:57 -0800 Subject: [PATCH] Fixed: Loading queue when there are pending items that were added before upgrading Closes #5257 --- .../Download/Pending/PendingReleaseService.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/NzbDrone.Core/Download/Pending/PendingReleaseService.cs b/src/NzbDrone.Core/Download/Pending/PendingReleaseService.cs index 1b78b1fa6..a00efa1de 100644 --- a/src/NzbDrone.Core/Download/Pending/PendingReleaseService.cs +++ b/src/NzbDrone.Core/Download/Pending/PendingReleaseService.cs @@ -9,6 +9,7 @@ using NzbDrone.Core.CustomFormats; using NzbDrone.Core.DecisionEngine; using NzbDrone.Core.Indexers; using NzbDrone.Core.Jobs; +using NzbDrone.Core.Languages; using NzbDrone.Core.Messaging.Events; using NzbDrone.Core.Parser; using NzbDrone.Core.Parser.Model; @@ -297,6 +298,12 @@ namespace NzbDrone.Core.Download.Pending return null; } + // Languages will be empty if added before upgrading to v4, reparsing the languages if they're empty will set it to Unknown or better. + if (release.ParsedEpisodeInfo.Languages.Empty()) + { + release.ParsedEpisodeInfo.Languages = LanguageParser.ParseLanguages(release.Title); + } + release.RemoteEpisode = new RemoteEpisode { Series = series,