From 4cadf1d43bf0694375d861211779d852002ae009 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 7 Sep 2020 17:32:59 -0700 Subject: [PATCH] Fixed: Error in logs when creating a new root folder --- .../DecisionEngine/Specifications/CutoffSpecification.cs | 2 +- src/Sonarr.Api.V3/RootFolders/RootFolderModule.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/CutoffSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/CutoffSpecification.cs index e9bd0875e..758c70ab8 100644 --- a/src/NzbDrone.Core/DecisionEngine/Specifications/CutoffSpecification.cs +++ b/src/NzbDrone.Core/DecisionEngine/Specifications/CutoffSpecification.cs @@ -39,7 +39,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications _logger.Debug("Comparing file quality and language with report. Existing file is {0} - {1}", file.Quality, file.Language); if (!_upgradableSpecification.CutoffNotMet(qualityProfile, - languageProfile, + languageProfile, file.Quality, file.Language, _episodeFilePreferredWordCalculator.Calculate(subject.Series, file), diff --git a/src/Sonarr.Api.V3/RootFolders/RootFolderModule.cs b/src/Sonarr.Api.V3/RootFolders/RootFolderModule.cs index 6747d98ec..78ca10a81 100644 --- a/src/Sonarr.Api.V3/RootFolders/RootFolderModule.cs +++ b/src/Sonarr.Api.V3/RootFolders/RootFolderModule.cs @@ -44,7 +44,7 @@ namespace Sonarr.Api.V3.RootFolders private RootFolderResource GetRootFolder(int id) { - var timeout = Request.GetBooleanQueryParameter("timeout", true); + var timeout = Context?.Request?.GetBooleanQueryParameter("timeout", true) ?? true; return _rootFolderService.Get(id, timeout).ToResource(); }