mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-22 14:13:36 -07:00
Proper override the GetProfiles method
This commit is contained in:
parent
72cd95d8b0
commit
5d70492392
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
using Ombi.Api.Sonarr.Models;
|
||||||
using Ombi.Api.Sonarr.Models.V3;
|
using Ombi.Api.Sonarr.Models.V3;
|
||||||
|
|
||||||
namespace Ombi.Api.Sonarr
|
namespace Ombi.Api.Sonarr
|
||||||
|
@ -22,7 +24,7 @@ namespace Ombi.Api.Sonarr
|
||||||
return await Api.Request<List<LanguageProfiles>>(request);
|
return await Api.Request<List<LanguageProfiles>>(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<IEnumerable<SonarrProfile>> GetProfiles(string apiKey, string baseUrl)
|
public override async Task<IEnumerable<SonarrProfile>> GetProfiles(string apiKey, string baseUrl)
|
||||||
{
|
{
|
||||||
var request = new Request($"{ApiBaseUrl}qualityprofile", baseUrl, HttpMethod.Get);
|
var request = new Request($"{ApiBaseUrl}qualityprofile", baseUrl, HttpMethod.Get);
|
||||||
request.AddHeader("X-Api-Key", apiKey);
|
request.AddHeader("X-Api-Key", apiKey);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue