mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
@@ -54,7 +54,12 @@ namespace Radarr.Api.V3.MovieFiles
|
||||
movieFile.Movie = movie;
|
||||
|
||||
var resource = movieFile.ToResource(movie, _qualityUpgradableSpecification);
|
||||
resource.CustomFormats = _formatCalculator.ParseCustomFormat(movieFile).ToResource(false);
|
||||
|
||||
var customFormats = _formatCalculator.ParseCustomFormat(movieFile);
|
||||
var customFormatScore = movie?.Profile?.CalculateCustomFormatScore(customFormats) ?? 0;
|
||||
resource.CustomFormats = customFormats.ToResource(false);
|
||||
resource.CustomFormatScore = customFormatScore;
|
||||
|
||||
return resource;
|
||||
}
|
||||
|
||||
@@ -78,7 +83,11 @@ namespace Radarr.Api.V3.MovieFiles
|
||||
|
||||
var resource = file.ToResource(movie, _qualityUpgradableSpecification);
|
||||
file.Movie = movie;
|
||||
resource.CustomFormats = _formatCalculator.ParseCustomFormat(file).ToResource(false);
|
||||
|
||||
var customFormats = _formatCalculator.ParseCustomFormat(file);
|
||||
var customFormatScore = movie?.Profile?.CalculateCustomFormatScore(customFormats) ?? 0;
|
||||
resource.CustomFormats = customFormats.ToResource(false);
|
||||
resource.CustomFormatScore = customFormatScore;
|
||||
|
||||
return new List<MovieFileResource> { resource };
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace Radarr.Api.V3.MovieFiles
|
||||
public int IndexerFlags { get; set; }
|
||||
public QualityModel Quality { get; set; }
|
||||
public List<CustomFormatResource> CustomFormats { get; set; }
|
||||
public int CustomFormatScore { get; set; }
|
||||
public MediaInfoResource MediaInfo { get; set; }
|
||||
public string OriginalFilePath { get; set; }
|
||||
public bool QualityCutoffNotMet { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user