Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/commit/0508dd2b663795b5329dacf096f8c66822e2008d
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
21 additions and
4 deletions
@ -8,7 +8,13 @@ namespace NzbDrone.Core.Indexers.Cardigann
public Dictionary < string , object > Variables { get ; private set ; }
public CardigannRequest ( string url , HttpAccept httpAccept , Dictionary < string , object > variables )
: base ( url , httpAccept )
: base ( url , httpAccept )
{
Variables = variables ;
}
public CardigannRequest ( HttpRequest httpRequest , Dictionary < string , object > variables )
: base ( httpRequest )
{
Variables = variables ;
}
@ -933,7 +933,20 @@ namespace NzbDrone.Core.Indexers.Cardigann
_logger . Info ( $"Adding request: {searchUrl}" ) ;
var request = new CardigannRequest ( searchUrl , HttpAccept . Html , variables ) ;
var requestbuilder = new HttpRequestBuilder ( searchUrl ) ;
requestbuilder . Method = method ;
// Add FormData for searchs that POST
if ( method = = HttpMethod . POST )
{
foreach ( var param in queryCollection )
{
requestbuilder . AddFormParameter ( param . Key , param . Value ) ;
}
}
var request = new CardigannRequest ( requestbuilder . Build ( ) , variables ) ;
// send HTTP request
if ( search . Headers ! = null )
@ -944,8 +957,6 @@ namespace NzbDrone.Core.Indexers.Cardigann
}
}
request . HttpRequest . Method = method ;
yield return request ;
}
}