Fixed: Error in logs when creating a new root folder
This commit is contained in:
parent
9ffc291fcf
commit
4cadf1d43b
|
@ -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);
|
_logger.Debug("Comparing file quality and language with report. Existing file is {0} - {1}", file.Quality, file.Language);
|
||||||
|
|
||||||
if (!_upgradableSpecification.CutoffNotMet(qualityProfile,
|
if (!_upgradableSpecification.CutoffNotMet(qualityProfile,
|
||||||
languageProfile,
|
languageProfile,
|
||||||
file.Quality,
|
file.Quality,
|
||||||
file.Language,
|
file.Language,
|
||||||
_episodeFilePreferredWordCalculator.Calculate(subject.Series, file),
|
_episodeFilePreferredWordCalculator.Calculate(subject.Series, file),
|
||||||
|
|
|
@ -44,7 +44,7 @@ namespace Sonarr.Api.V3.RootFolders
|
||||||
|
|
||||||
private RootFolderResource GetRootFolder(int id)
|
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();
|
return _rootFolderService.Get(id, timeout).ToResource();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue