mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
gui: redirect to flaresolverr github for some tickets
This commit is contained in:
@@ -249,11 +249,11 @@ function displayUnconfiguredIndexersList() {
|
|||||||
}).fail(function (data) {
|
}).fail(function (data) {
|
||||||
if(data.responseJSON.error !== undefined) {
|
if(data.responseJSON.error !== undefined) {
|
||||||
var indexEnd = 2048 - "https://github.com/Jackett/Jackett/issues/new?title=[".length - indexerId.length - "] ".length - " (Config)".length; // keep url <= 2k #5104
|
var indexEnd = 2048 - "https://github.com/Jackett/Jackett/issues/new?title=[".length - indexerId.length - "] ".length - " (Config)".length; // keep url <= 2k #5104
|
||||||
var githubrepo = "Jackett/Jackett"
|
var githubrepo = "Jackett/Jackett";
|
||||||
var githubtext = "this indexer"
|
var githubtext = "this indexer";
|
||||||
if (data.responseJSON.error.includes("check FlareSolverr logs") || data.responseJSON.error.includes("cookies provided by FlareSolverr are not valid")) {
|
if (data.responseJSON.error.includes("check FlareSolverr logs") || data.responseJSON.error.includes("cookies provided by FlareSolverr are not valid")) {
|
||||||
githubrepo = "FlareSolverr/FlareSolverr"
|
githubrepo = "FlareSolverr/FlareSolverr";
|
||||||
githubtext = "FlareSolverr"
|
githubtext = "FlareSolverr";
|
||||||
}
|
}
|
||||||
doNotify("An error occurred while configuring this indexer<br /><b>" + data.responseJSON.error.substring(0, indexEnd) + "</b><br /><i><a href=\"https://github.com/" + githubrepo + "/issues/new?title=[" + indexerId + "] " + data.responseJSON.error.substring(0, indexEnd) + " (Config)\" target=\"_blank\">Click here to open an issue on GitHub for " + githubtext + ".</a><i>", "danger", "glyphicon glyphicon-alert", false);
|
doNotify("An error occurred while configuring this indexer<br /><b>" + data.responseJSON.error.substring(0, indexEnd) + "</b><br /><i><a href=\"https://github.com/" + githubrepo + "/issues/new?title=[" + indexerId + "] " + data.responseJSON.error.substring(0, indexEnd) + " (Config)\" target=\"_blank\">Click here to open an issue on GitHub for " + githubtext + ".</a><i>", "danger", "glyphicon glyphicon-alert", false);
|
||||||
} else {
|
} else {
|
||||||
@@ -480,11 +480,11 @@ function testIndexer(id, notifyResult) {
|
|||||||
updateTestState(id, "error", data.error, indexers);
|
updateTestState(id, "error", data.error, indexers);
|
||||||
if(data.responseJSON.error !== undefined && notifyResult) {
|
if(data.responseJSON.error !== undefined && notifyResult) {
|
||||||
var indexEnd = 2048 - "https://github.com/Jackett/Jackett/issues/new?title=[".length - id.length - "] ".length - " (Test)".length; // keep url <= 2k #5104
|
var indexEnd = 2048 - "https://github.com/Jackett/Jackett/issues/new?title=[".length - id.length - "] ".length - " (Test)".length; // keep url <= 2k #5104
|
||||||
var githubrepo = "Jackett/Jackett"
|
var githubrepo = "Jackett/Jackett";
|
||||||
var githubtext = "this indexer"
|
var githubtext = "this indexer";
|
||||||
if (data.responseJSON.error.includes("check FlareSolverr logs")) {
|
if (data.responseJSON.error.includes("check FlareSolverr logs") || data.responseJSON.error.includes("cookies provided by FlareSolverr are not valid")) {
|
||||||
githubrepo = "FlareSolverr/FlareSolverr"
|
githubrepo = "FlareSolverr/FlareSolverr";
|
||||||
githubtext = "FlareSolverr"
|
githubtext = "FlareSolverr";
|
||||||
}
|
}
|
||||||
doNotify("An error occurred while testing this indexer<br /><b>" + data.responseJSON.error.substring(0, indexEnd) + "</b><br /><i><a href=\"https://github.com/" + githubrepo + "/issues/new?title=[" + id + "] " + data.responseJSON.error.substring(0, indexEnd) + " (Test)\" target=\"_blank\">Click here to open an issue on GitHub for " + githubtext + ".</a><i>", "danger", "glyphicon glyphicon-alert", false);
|
doNotify("An error occurred while testing this indexer<br /><b>" + data.responseJSON.error.substring(0, indexEnd) + "</b><br /><i><a href=\"https://github.com/" + githubrepo + "/issues/new?title=[" + id + "] " + data.responseJSON.error.substring(0, indexEnd) + " (Test)\" target=\"_blank\">Click here to open an issue on GitHub for " + githubtext + ".</a><i>", "danger", "glyphicon glyphicon-alert", false);
|
||||||
} else {
|
} else {
|
||||||
|
@@ -693,6 +693,6 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/javascript" src="../libs/api.js?changed=2017083001"></script>
|
<script type="text/javascript" src="../libs/api.js?changed=2017083001"></script>
|
||||||
<script type="text/javascript" src="../custom.js?changed=20210322"></script>
|
<script type="text/javascript" src="../custom.js?changed=20210420"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user