mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-31 03:50:08 -07:00
!wip added the api to trigger an album search
This commit is contained in:
parent
1d91d6fa94
commit
db5d0c0b08
3 changed files with 24 additions and 0 deletions
|
@ -154,6 +154,14 @@ namespace Ombi.Api.Lidarr
|
|||
return Api.Request<LidarrStatus>(request);
|
||||
}
|
||||
|
||||
public Task<CommandResult> AlbumSearch(int[] albumIds, string apiKey, string baseUrl)
|
||||
{
|
||||
var request = new Request($"{ApiVersion}/command/AlbumSearch", baseUrl, HttpMethod.Post);
|
||||
request.AddJsonBody(albumIds);
|
||||
AddHeaders(request, apiKey);
|
||||
return Api.Request<CommandResult>(request);
|
||||
}
|
||||
|
||||
private void AddHeaders(Request request, string key)
|
||||
{
|
||||
request.AddHeader("X-Api-Key", key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue