Fix rootfolder override

rootfolder override has the same issue
pull/4116/head
Emil Kitti 4 years ago committed by GitHub
parent 87d8ba0499
commit 45bcfca138
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -206,15 +206,19 @@ namespace Ombi.Core.Senders
// Overrides on the request take priority
if (model.ParentRequest.QualityOverride.HasValue)
{
var overrideQuality = model.ParentRequest.QualityOverride.Value;
if (overrideQuality > 0)
var qualityOverride = model.ParentRequest.QualityOverride.Value;
if (qualityOverride > 0)
{
qualityToUse = overrideQuality;
qualityToUse = qualityOverride;
}
}
if (model.ParentRequest.RootFolder.HasValue)
{
rootFolderPath = await GetSonarrRootPath(model.ParentRequest.RootFolder.Value, s);
var rootfolderOverride = model.ParentRequest.RootFolder.Value;
if (rootfolderOverride > 0)
{
rootFolderPath = await GetSonarrRootPath(rootfolderOverride, s);
}
}
// Are we using v3 sonarr?

Loading…
Cancel
Save