aboutsummaryrefslogtreecommitdiffhomepage
path: root/views
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2018-09-17 23:38:20 -0400
committermorpheus65535 <[email protected]>2018-09-17 23:38:20 -0400
commit46d8c4935555bedb2a342c41be4643695f00533a (patch)
tree56296b33fce405d562630e78f03575c882540c17 /views
parentaa952e7bce6ce01aa2c164b0fa5bebfb69b50f9b (diff)
downloadbazarr-46d8c4935555bedb2a342c41be4643695f00533a.tar.gz
bazarr-46d8c4935555bedb2a342c41be4643695f00533a.zip
Fix for Sonarr and Radarr settings testing
Diffstat (limited to 'views')
-rw-r--r--views/settings.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/settings.tpl b/views/settings.tpl
index 164c55f9d..392246f29 100644
--- a/views/settings.tpl
+++ b/views/settings.tpl
@@ -1882,7 +1882,7 @@
} else {
protocol = 'http';
}
- sonarr_url = $('#settings_sonarr_ip').val() + ":" + $('#settings_sonarr_port').val() + "/" + $('#settings_sonarr_baseurl').val().replace(/^\/|\/$/g, '') + "/api/system/status?apikey=" + $('#settings_sonarr_apikey').val();
+ sonarr_url = $('#settings_sonarr_ip').val() + ":" + $('#settings_sonarr_port').val() + $('#settings_sonarr_baseurl').val().replace(/\/$/, "") + "/api/system/status?apikey=" + $('#settings_sonarr_apikey').val();
$.getJSON("{{base_url}}test_url/" + protocol + "/" + encodeURIComponent(sonarr_url), function (data) {
if (data.status) {
@@ -1921,7 +1921,7 @@
} else {
protocol = 'http';
}
- radarr_url = $('#settings_radarr_ip').val() + ":" + $('#settings_radarr_port').val() + "/" + $('#settings_radarr_baseurl').val().replace(/^\/|\/$/g, '') + "/api/system/status?apikey=" + $('#settings_radarr_apikey').val();
+ radarr_url = $('#settings_radarr_ip').val() + ":" + $('#settings_radarr_port').val() + $('#settings_radarr_baseurl').val().replace(/\/$/, "") + "/api/system/status?apikey=" + $('#settings_radarr_apikey').val();
$.getJSON("{{base_url}}test_url/" + protocol + "/" + encodeURIComponent(radarr_url), function (data) {
if (data.status) {