1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Fixed: Upgrades blocked: UpgradeSpecification error

Fixes #8431

- Remove erroneous Year and Imdbid from ParseCustomFormat, not needed
This commit is contained in:
Bakerboy448 2023-05-02 18:00:26 -05:00 committed by Qstick
parent 554ab21d38
commit 5e338c93a3
2 changed files with 3 additions and 4 deletions

View File

@ -187,9 +187,7 @@ private static List<CustomFormat> ParseCustomFormat(MovieFile movieFile, Movie m
Quality = movieFile.Quality,
Languages = movieFile.Languages,
ReleaseGroup = movieFile.ReleaseGroup,
Edition = movieFile.Edition,
Year = movieFile.Movie.MovieMetadata.Value.Year,
ImdbId = movieFile.Movie.MovieMetadata.Value.ImdbId
Edition = movieFile.Edition
};
var input = new CustomFormatInput

View File

@ -28,7 +28,7 @@ public Decision IsSatisfiedBy(LocalMovie localMovie, DownloadClientItem download
{
var downloadPropersAndRepacks = _configService.DownloadPropersAndRepacks;
var qualityProfile = localMovie.Movie.Profile;
var qualityComparer = new QualityModelComparer(localMovie.Movie.Profile);
var qualityComparer = new QualityModelComparer(qualityProfile);
if (localMovie.Movie.MovieFileId > 0)
{
@ -60,6 +60,7 @@ public Decision IsSatisfiedBy(LocalMovie localMovie, DownloadClientItem download
return Decision.Reject("Not a quality revision upgrade for existing movie file(s)");
}
movieFile.Movie = localMovie.Movie;
var currentFormats = _formatService.ParseCustomFormat(movieFile);
var currentScore = qualityProfile.CalculateCustomFormatScore(currentFormats);