diff --git a/src/NzbDrone.Core.Test/Download/Pending/PendingReleaseServiceTests/AddFixture.cs b/src/NzbDrone.Core.Test/Download/Pending/PendingReleaseServiceTests/AddFixture.cs index 3d595f9f4..a6ba73e12 100644 --- a/src/NzbDrone.Core.Test/Download/Pending/PendingReleaseServiceTests/AddFixture.cs +++ b/src/NzbDrone.Core.Test/Download/Pending/PendingReleaseServiceTests/AddFixture.cs @@ -89,6 +89,7 @@ namespace NzbDrone.Core.Test.Download.Pending.PendingReleaseServiceTests .With(h => h.Title = title) .With(h => h.Release = release) .With(h => h.Reason = reason) + .With(h => h.ParsedMovieInfo = _parsedMovieInfo) .Build(); _heldReleases.AddRange(heldReleases); diff --git a/src/NzbDrone.Core.Test/Download/Pending/PendingReleaseServiceTests/RemovePendingFixture.cs b/src/NzbDrone.Core.Test/Download/Pending/PendingReleaseServiceTests/RemovePendingFixture.cs index e405716ea..32010c6a5 100644 --- a/src/NzbDrone.Core.Test/Download/Pending/PendingReleaseServiceTests/RemovePendingFixture.cs +++ b/src/NzbDrone.Core.Test/Download/Pending/PendingReleaseServiceTests/RemovePendingFixture.cs @@ -52,6 +52,7 @@ namespace NzbDrone.Core.Test.Download.Pending.PendingReleaseServiceTests _pending.Add(new PendingRelease { Id = id, + Title = "Movie.Title.2020.720p-Radarr", ParsedMovieInfo = new ParsedMovieInfo { MovieTitles = new List { title }, Year = year }, MovieId = _movie.Id }); diff --git a/src/NzbDrone.Core/Download/Pending/PendingReleaseService.cs b/src/NzbDrone.Core/Download/Pending/PendingReleaseService.cs index 3b06e50d2..ab517356d 100644 --- a/src/NzbDrone.Core/Download/Pending/PendingReleaseService.cs +++ b/src/NzbDrone.Core/Download/Pending/PendingReleaseService.cs @@ -283,6 +283,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.ParsedMovieInfo.Languages.Empty()) + { + release.ParsedMovieInfo.Languages = LanguageParser.ParseLanguages(release.Title); + } + release.RemoteMovie = new RemoteMovie { Movie = movie,