mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-22 06:13:22 -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.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Ombi.Api.Sonarr.Models;
|
||||
using Ombi.Api.Sonarr.Models.V3;
|
||||
|
||||
namespace Ombi.Api.Sonarr
|
||||
|
@ -22,7 +24,7 @@ namespace Ombi.Api.Sonarr
|
|||
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);
|
||||
request.AddHeader("X-Api-Key", apiKey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue