mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-03-05 13:20:20 -05:00
Fixed: Loading queue when there are pending items that were added before upgrading
Closes #5257
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user