mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
Search for the Lidarr Album when it's a new artist.
This commit is contained in:
parent
31749f94cd
commit
66af499970
1 changed files with 5 additions and 1 deletions
|
@ -76,7 +76,11 @@ namespace Ombi.Core.Senders
|
|||
var result = await _lidarrApi.AddArtist(newArtist, settings.ApiKey, settings.FullUri);
|
||||
if (result != null && result.id > 0)
|
||||
{
|
||||
// Setup the albums
|
||||
// Search for it
|
||||
if (!settings.AddOnly)
|
||||
{
|
||||
await _lidarrApi.AlbumSearch(new[] { result.id }, settings.ApiKey, settings.FullUri);
|
||||
}
|
||||
return new SenderResult { Message = "Album has been requested!", Sent = true, Success = true };
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue