Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/commit/00099a5e40c21f09d4a01ed26099eff4fa34fdc7
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
14 additions and
4 deletions
@ -21,7 +21,13 @@ namespace NzbDrone.Core.NetImport.CouchPotato
private IEnumerable < NetImportRequest > GetMovies ( string searchParameters )
{
var request = new NetImportRequest ( $"{Settings.Link.Trim()}:{Settings.Port}/api/{Settings.ApiKey}/movie.list/?status=active" , HttpAccept . Json ) ;
var urlBase = "" ;
if ( ! string . IsNullOrWhiteSpace ( Settings . UrlBase ) )
{
urlBase = Settings . UrlBase . StartsWith ( "/" ) ? Settings . UrlBase : $"/{Settings.UrlBase}" ;
}
var request = new NetImportRequest ( $"{Settings.Link.Trim()}:{Settings.Port}{urlBase}/api/{Settings.ApiKey}/movie.list/?status=active" , HttpAccept . Json ) ;
yield return request ;
}
}
@ -12,16 +12,20 @@ namespace NzbDrone.Core.NetImport.CouchPotato
public CouchPotatoSettings ( )
{
Link = "http://localhost" ;
Port = "5050" ;
Port = 5050 ;
UrlBase = "" ;
}
[FieldDefinition(0, Label = "CouchPotato URL", HelpText = "Link to your CoouchPootato.")]
public new string Link { get ; set ; }
[FieldDefinition(1, Label = "CouchPotato Port", HelpText = "Port your CoouchPootato uses.")]
public string Port { get ; set ; }
public int Port { get ; set ; }
[FieldDefinition(2, Label = "CouchPotato API Key", HelpText = "CoouchPootato API Key.")]
[FieldDefinition(2, Label = "CouchPotato Url Base", HelpText = "UrlBase your CoouchPootato uses, leave blank for none")]
public string UrlBase { get ; set ; }
[FieldDefinition(3, Label = "CouchPotato API Key", HelpText = "CoouchPootato API Key.")]
public string ApiKey { get ; set ; }
}
}