mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
Fixed the issue if in Radarr we only want to add and monitor, if the movie already exists we search for it.
This commit is contained in:
parent
db5d0c0b08
commit
85cbc08463
1 changed files with 4 additions and 1 deletions
|
@ -123,7 +123,10 @@ namespace Ombi.Core.Senders
|
||||||
existingMovie.monitored = true;
|
existingMovie.monitored = true;
|
||||||
await RadarrApi.UpdateMovie(existingMovie, settings.ApiKey, settings.FullUri);
|
await RadarrApi.UpdateMovie(existingMovie, settings.ApiKey, settings.FullUri);
|
||||||
// Search for it
|
// Search for it
|
||||||
await RadarrApi.MovieSearch(new[] { existingMovie.id }, settings.ApiKey, settings.FullUri);
|
if (!settings.AddOnly)
|
||||||
|
{
|
||||||
|
await RadarrApi.MovieSearch(new[] {existingMovie.id}, settings.ApiKey, settings.FullUri);
|
||||||
|
}
|
||||||
|
|
||||||
return new SenderResult { Success = true, Sent = true };
|
return new SenderResult { Success = true, Sent = true };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue