mirror of
https://github.com/Radarr/Radarr
synced 2025-12-09 01:46:09 +01:00
Fixed: Show Cutoff Status on History Items
This commit is contained in:
parent
8ad995e56f
commit
947b9e75db
1 changed files with 5 additions and 5 deletions
|
|
@ -3,7 +3,7 @@
|
|||
using System.Linq;
|
||||
using Nancy;
|
||||
using NzbDrone.Core.Datastore;
|
||||
using NzbDrone.Core.DecisionEngine;
|
||||
using NzbDrone.Core.DecisionEngine.Specifications;
|
||||
using NzbDrone.Core.Download;
|
||||
using NzbDrone.Core.History;
|
||||
using Radarr.Api.V2.Movies;
|
||||
|
|
@ -16,15 +16,15 @@ namespace Radarr.Api.V2.History
|
|||
public class HistoryModule : RadarrRestModule<HistoryResource>
|
||||
{
|
||||
private readonly IHistoryService _historyService;
|
||||
// private readonly IUpgradableSpecification _upgradableSpecification;
|
||||
private readonly IUpgradableSpecification _upgradableSpecification;
|
||||
private readonly IFailedDownloadService _failedDownloadService;
|
||||
|
||||
public HistoryModule(IHistoryService historyService,
|
||||
// IUpgradableSpecification upgradableSpecification,
|
||||
IUpgradableSpecification upgradableSpecification,
|
||||
IFailedDownloadService failedDownloadService)
|
||||
{
|
||||
_historyService = historyService;
|
||||
// _upgradableSpecification = upgradableSpecification;
|
||||
_upgradableSpecification = upgradableSpecification;
|
||||
_failedDownloadService = failedDownloadService;
|
||||
GetResourcePaged = GetHistory;
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ protected HistoryResource MapToResource(NzbDrone.Core.History.History model, boo
|
|||
|
||||
if (model.Movie != null)
|
||||
{
|
||||
// resource.QualityCutoffNotMet = _upgradableSpecification.QualityCutoffNotMet(model.Movie.Profile.Value, model.Quality);
|
||||
resource.QualityCutoffNotMet = _upgradableSpecification.CutoffNotMet(model.Movie.Profile.Value, model.Quality);
|
||||
}
|
||||
|
||||
return resource;
|
||||
|
|
|
|||
Loading…
Reference in a new issue