mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 04:22:30 +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,
|
Quality = movieFile.Quality,
|
||||||
Languages = movieFile.Languages,
|
Languages = movieFile.Languages,
|
||||||
ReleaseGroup = movieFile.ReleaseGroup,
|
ReleaseGroup = movieFile.ReleaseGroup,
|
||||||
Edition = movieFile.Edition,
|
Edition = movieFile.Edition
|
||||||
Year = movieFile.Movie.MovieMetadata.Value.Year,
|
|
||||||
ImdbId = movieFile.Movie.MovieMetadata.Value.ImdbId
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var input = new CustomFormatInput
|
var input = new CustomFormatInput
|
||||||
|
@ -28,7 +28,7 @@ public Decision IsSatisfiedBy(LocalMovie localMovie, DownloadClientItem download
|
|||||||
{
|
{
|
||||||
var downloadPropersAndRepacks = _configService.DownloadPropersAndRepacks;
|
var downloadPropersAndRepacks = _configService.DownloadPropersAndRepacks;
|
||||||
var qualityProfile = localMovie.Movie.Profile;
|
var qualityProfile = localMovie.Movie.Profile;
|
||||||
var qualityComparer = new QualityModelComparer(localMovie.Movie.Profile);
|
var qualityComparer = new QualityModelComparer(qualityProfile);
|
||||||
|
|
||||||
if (localMovie.Movie.MovieFileId > 0)
|
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)");
|
return Decision.Reject("Not a quality revision upgrade for existing movie file(s)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
movieFile.Movie = localMovie.Movie;
|
||||||
var currentFormats = _formatService.ParseCustomFormat(movieFile);
|
var currentFormats = _formatService.ParseCustomFormat(movieFile);
|
||||||
var currentScore = qualityProfile.CalculateCustomFormatScore(currentFormats);
|
var currentScore = qualityProfile.CalculateCustomFormatScore(currentFormats);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user