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:
parent
554ab21d38
commit
5e338c93a3
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user