1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-10-03 22:57:18 +02:00

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

Fixes #7823

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
Qstick 2022-12-05 21:15:42 -06:00
parent f5d6a79998
commit 694940452c
3 changed files with 8 additions and 0 deletions

View File

@ -89,6 +89,7 @@ private void GivenHeldRelease(string title, string indexer, DateTime publishDate
.With(h => h.Title = title)
.With(h => h.Release = release)
.With(h => h.Reason = reason)
.With(h => h.ParsedMovieInfo = _parsedMovieInfo)
.Build();
_heldReleases.AddRange(heldReleases);

View File

@ -52,6 +52,7 @@ private void AddPending(int id, string title, int year)
_pending.Add(new PendingRelease
{
Id = id,
Title = "Movie.Title.2020.720p-Radarr",
ParsedMovieInfo = new ParsedMovieInfo { MovieTitles = new List<string> { title }, Year = year },
MovieId = _movie.Id
});

View File

@ -283,6 +283,12 @@ private List<PendingRelease> IncludeRemoteMovies(List<PendingRelease> releases,
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,