From 947b9e75dba1a721f643c89ef28fadb8d18d068c Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 28 Oct 2019 22:07:19 -0400 Subject: [PATCH] Fixed: Show Cutoff Status on History Items --- src/Radarr.Api.V2/History/HistoryModule.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Radarr.Api.V2/History/HistoryModule.cs b/src/Radarr.Api.V2/History/HistoryModule.cs index 025dc7ca2..8b188603e 100644 --- a/src/Radarr.Api.V2/History/HistoryModule.cs +++ b/src/Radarr.Api.V2/History/HistoryModule.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; 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 { 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 @@ namespace Radarr.Api.V2.History 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;