diff --git a/Bazarr/Bazarr.php b/Bazarr/Bazarr.php index 1f46cc1465..0c98afff41 100644 --- a/Bazarr/Bazarr.php +++ b/Bazarr/Bazarr.php @@ -48,7 +48,7 @@ public function livestats() public function url($endpoint) { $api_url = - parent::normaliseurl($this->config->url) . + parent::normaliseurl($this->config->url, true) . "api/" . $endpoint . "?apikey=" . diff --git a/Lidarr/Lidarr.php b/Lidarr/Lidarr.php index da67bb6379..75e115412f 100644 --- a/Lidarr/Lidarr.php +++ b/Lidarr/Lidarr.php @@ -39,7 +39,7 @@ public function livestats() public function url($endpoint) { $api_url = - parent::normaliseurl($this->config->url) . + parent::normaliseurl($this->config->url, true) . "api/v1/" . $endpoint . "?apikey=" . diff --git a/Prowlarr/Prowlarr.php b/Prowlarr/Prowlarr.php index 927db46205..cf55d2ea10 100644 --- a/Prowlarr/Prowlarr.php +++ b/Prowlarr/Prowlarr.php @@ -46,7 +46,7 @@ public function livestats() public function url($endpoint) { $api_url = - parent::normaliseurl($this->config->url) . + parent::normaliseurl($this->config->url, true) . "api/v1/" . $endpoint . "?apikey=" . diff --git a/Radarr/Radarr.php b/Radarr/Radarr.php index 2ad29ff54f..1ad1460d10 100644 --- a/Radarr/Radarr.php +++ b/Radarr/Radarr.php @@ -43,7 +43,7 @@ public function livestats() public function url($endpoint) { $api_url = - parent::normaliseurl($this->config->url) . + parent::normaliseurl($this->config->url, true) . "api/v3/" . $endpoint . "?apikey=" . diff --git a/Readarr/Readarr.php b/Readarr/Readarr.php index 6b6de06d9a..ca795635f7 100644 --- a/Readarr/Readarr.php +++ b/Readarr/Readarr.php @@ -62,7 +62,7 @@ public function livestats() public function url($endpoint) { $api_url = - parent::normaliseurl($this->config->url) . + parent::normaliseurl($this->config->url, true) . "api/v1/" . $endpoint . "apikey=" . diff --git a/Sonarr/Sonarr.php b/Sonarr/Sonarr.php index 9d92d1a46f..f5d358d491 100644 --- a/Sonarr/Sonarr.php +++ b/Sonarr/Sonarr.php @@ -51,7 +51,7 @@ public function livestats() public function url($endpoint) { $api_url = - parent::normaliseurl($this->config->url) . + parent::normaliseurl($this->config->url, true) . "api/v3/" . $endpoint . "?sortKey=series.title&apikey=" .