mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 15:56:05 -07:00
Fixed #1445
This commit is contained in:
parent
b8d3a88409
commit
d1d65b24de
7 changed files with 161 additions and 138 deletions
|
@ -77,7 +77,7 @@ namespace Ombi.Api
|
|||
return obj;
|
||||
}
|
||||
|
||||
public RadarrAddMovie AddMovie(int tmdbId, string title, int year, int qualityId, string rootPath, string apiKey, Uri baseUrl, bool searchNow = false)
|
||||
public RadarrAddMovie AddMovie(int tmdbId, string title, int year, int qualityId, string rootPath, string apiKey, Uri baseUrl, bool searchNow = false, string minimumAvailability = null)
|
||||
{
|
||||
var request = new RestRequest
|
||||
{
|
||||
|
@ -95,6 +95,10 @@ namespace Ombi.Api
|
|||
monitored = true,
|
||||
year = year
|
||||
};
|
||||
if(!string.IsNullOrEmpty(minimumAvailability))
|
||||
{
|
||||
options.minimumAvailability = minimumAvailability;
|
||||
}
|
||||
|
||||
if (searchNow)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue