mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Fix manual search - append apikey
This commit is contained in:
@@ -70,6 +70,8 @@ function loadJackettSettings() {
|
||||
basePath = '';
|
||||
}
|
||||
|
||||
api.key = data.api_key;
|
||||
|
||||
$("#jackett-savedir").val(data.blackholedir);
|
||||
$("#jackett-allowext").attr('checked', data.external);
|
||||
$("#jackett-allowupdate").attr('checked', data.updatedisabled);
|
||||
|
@@ -1,6 +1,7 @@
|
||||
var api = {
|
||||
version: "2.0",
|
||||
root: "/api",
|
||||
key: "",
|
||||
|
||||
getApiPath: function(category, action) {
|
||||
var path = this.root + "/v" + this.version + "/" + category;
|
||||
@@ -47,7 +48,7 @@ var api = {
|
||||
},
|
||||
|
||||
resultsForIndexer: function(indexerId, query, callback) {
|
||||
return $.get(this.getApiPath("indexers", indexerId + "/results"), query, callback);
|
||||
return $.get(this.getApiPath("indexers", indexerId + "/results?apikey=" + this.key), query, callback);
|
||||
},
|
||||
|
||||
getServerCache: function(callback) {
|
||||
|
Reference in New Issue
Block a user