mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Fixed #1445
This commit is contained in:
parent
b8d3a88409
commit
d1d65b24de
7 changed files with 161 additions and 138 deletions
|
@ -121,7 +121,7 @@ namespace Ombi.Core
|
|||
}
|
||||
|
||||
var rootFolderPath = model.RootFolderSelected <= 0 ? settings.FullRootPath : GetRootPath(model.RootFolderSelected, settings);
|
||||
var result = RadarrApi.AddMovie(model.ProviderId, model.Title, model.ReleaseDate.Year, qualityProfile, rootFolderPath, settings.ApiKey, settings.FullUri, true);
|
||||
var result = RadarrApi.AddMovie(model.ProviderId, model.Title, model.ReleaseDate.Year, qualityProfile, rootFolderPath, settings.ApiKey, settings.FullUri, true, settings.MinimumAvailability);
|
||||
|
||||
if (!string.IsNullOrEmpty(result.Error?.message))
|
||||
{
|
||||
|
|
|
@ -33,5 +33,6 @@ namespace Ombi.Core.SettingModels
|
|||
public string QualityProfile { get; set; }
|
||||
public string RootPath { get; set; }
|
||||
public string FullRootPath { get; set; }
|
||||
public string MinimumAvailability { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue