Search for the Lidarr Album when it's a new artist.

This commit is contained in:
TidusJar 2018-09-27 13:26:41 +01:00
commit 66af499970

View file

@ -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 };
}
}