mirror of
https://github.com/Jackett/Jackett
synced 2025-03-10 14:14:25 +00:00
webui: include link to flaresolverr configuration (#13194)
This commit is contained in:
parent
ff3d79938b
commit
b7ac4af666
2 changed files with 7 additions and 3 deletions
|
@ -923,8 +923,12 @@ function doErrorNotify(indexerId, errorMessage, errorEvent) {
|
||||||
var indexEnd = 2000 - githubUrl.length; // keep url <= 2k #5104
|
var indexEnd = 2000 - githubUrl.length; // keep url <= 2k #5104
|
||||||
var htmlEscapedError = $("<div>").text(errorMessage.substring(0, indexEnd)).html();
|
var htmlEscapedError = $("<div>").text(errorMessage.substring(0, indexEnd)).html();
|
||||||
var urlEscapedError = encodeURIComponent(errorMessage.substring(0, indexEnd));
|
var urlEscapedError = encodeURIComponent(errorMessage.substring(0, indexEnd));
|
||||||
doNotify("An error occurred while " + errorEvent + " this indexer<br /><b>" + htmlEscapedError + "</b><br />" +
|
var link = "<i><a href=\"" + githubUrl + " " + urlEscapedError + "\" target=\"_blank\">Click here to open an issue on GitHub for " + githubText + ".</a><i>";
|
||||||
"<i><a href=\"" + githubUrl + " " + urlEscapedError + "\" target=\"_blank\">Click here to open an issue on GitHub for " + githubText + ".</a><i>",
|
if (errorMessage.includes("FlareSolverr is not configured")) {
|
||||||
|
link = "<i><a href=\"https://github.com/Jackett/Jackett#configuring-flaresolverr\" target=\"_blank\">Instructions to install and configure FlareSolverr.</a><i><br />" +
|
||||||
|
"<i><a href=\"https://github.com/Jackett/Jackett/wiki/Troubleshooting#error-connecting-to-flaresolverr-server\" target=\"_blank\">Troubleshooting frecuent errors with FlareSolverr.</a><i>";
|
||||||
|
}
|
||||||
|
doNotify("An error occurred while " + errorEvent + " this indexer<br /><b>" + htmlEscapedError + "</b><br />" + link,
|
||||||
"danger", "glyphicon glyphicon-alert", false);
|
"danger", "glyphicon glyphicon-alert", false);
|
||||||
} else {
|
} else {
|
||||||
doNotify("An error occurred while " + errorEvent + " indexers, please take a look at indexers with failed test for more information.",
|
doNotify("An error occurred while " + errorEvent + " indexers, please take a look at indexers with failed test for more information.",
|
||||||
|
|
|
@ -750,6 +750,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=20220417"></script>
|
<script type="text/javascript" src="../custom.js?changed=20220424"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Reference in a new issue