Fixed: Loading queue when there are pending items that were added before upgrading

Closes #5257
This commit is contained in:
Mark McDowall 2022-12-02 22:42:57 -08:00
parent 51b1ba13c1
commit 31198c627f
1 changed files with 7 additions and 0 deletions

View File

@ -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,