mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
RarBG: add app_id to API calls, now a requirement. #2753
This commit is contained in:
@@ -26,7 +26,7 @@ namespace Jackett.Common.Indexers
|
||||
set { configData.Url.Value = value.ToString(); }
|
||||
}
|
||||
|
||||
private string ApiEndpoint { get { return BaseUri + "pubapi_v2.php"; } }
|
||||
private string ApiEndpoint { get { return BaseUri + "pubapi_v2.php?app_id=Jackett"; } }
|
||||
|
||||
private new ConfigurationDataUrl configData
|
||||
{
|
||||
@@ -93,7 +93,7 @@ namespace Jackett.Common.Indexers
|
||||
var queryCollection = new NameValueCollection();
|
||||
queryCollection.Add("get_token", "get_token");
|
||||
|
||||
var tokenUrl = ApiEndpoint + "?" + queryCollection.GetQueryString();
|
||||
var tokenUrl = ApiEndpoint + "&" + queryCollection.GetQueryString();
|
||||
|
||||
var result = await RequestStringWithCookiesAndRetry(tokenUrl);
|
||||
var json = JObject.Parse(result.Content);
|
||||
@@ -165,7 +165,7 @@ namespace Jackett.Common.Indexers
|
||||
queryCollection.Add("category", cats);
|
||||
}
|
||||
|
||||
var searchUrl = ApiEndpoint + "?" + queryCollection.GetQueryString();
|
||||
var searchUrl = ApiEndpoint + "&" + queryCollection.GetQueryString();
|
||||
var response = await RequestStringWithCookiesAndRetry(searchUrl, string.Empty);
|
||||
|
||||
try
|
||||
|
Reference in New Issue
Block a user