Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Ombi/commit/875da959f353119b05138d68ee6d32a49e14b91e
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
10 additions and
1 deletions
@ -19,7 +19,7 @@ namespace Ombi.Api.Sonarr
protected IApi Api { get ; }
protected virtual string ApiBaseUrl = > "/api/" ;
public async Task < IEnumerable < SonarrProfile > > GetProfiles ( string apiKey , string baseUrl )
public virtual async Task < IEnumerable < SonarrProfile > > GetProfiles ( string apiKey , string baseUrl )
{
var request = new Request ( $"{ApiBaseUrl}profile" , baseUrl , HttpMethod . Get ) ;
request . AddHeader ( "X-Api-Key" , apiKey ) ;
@ -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
@ -21,5 +23,12 @@ namespace Ombi.Api.Sonarr
return await Api . Request < List < LanguageProfiles > > ( request ) ;
}
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 ) ;
return await Api . Request < List < SonarrProfile > > ( request ) ;
}
}
}