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

Closes #5257
pull/5156/head
Mark McDowall 2 years ago
parent 51b1ba13c1
commit 31198c627f

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

Loading…
Cancel
Save