Explorar el Código

Merge pull request #1953 from causefx/v2-develop

V2 develop
causefx hace 2 años
padre
commit
3c37516aab
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      api/homepage/sabnzbd.php

+ 2 - 2
api/homepage/sabnzbd.php

@@ -147,7 +147,7 @@ trait SabNZBdHomepageItem
 		$url = $this->qualifyURL($this->config['sabnzbdURL']);
 		$url = $this->qualifyURL($this->config['sabnzbdURL']);
 		$url = $url . '/api?mode=history&output=json&limit=100&apikey=' . $this->config['sabnzbdToken'];
 		$url = $url . '/api?mode=history&output=json&limit=100&apikey=' . $this->config['sabnzbdToken'];
 		try {
 		try {
-			$options = ($this->localURL($url)) ? array('verify' => false) : array();
+			$options = $this->requestOptions($url, $this->config['sabnzbdRefresh'], $this->config['sabnzbdDisableCertCheck'], $this->config['sabnzbdUseCustomCertificate']);
 			$response = Requests::get($url, array(), $options);
 			$response = Requests::get($url, array(), $options);
 			if ($response->success) {
 			if ($response->success) {
 				$api['content']['historyItems'] = json_decode($response->body, true);
 				$api['content']['historyItems'] = json_decode($response->body, true);
@@ -211,4 +211,4 @@ trait SabNZBdHomepageItem
 		$this->setAPIResponse('success', null, 200, $api);
 		$this->setAPIResponse('success', null, 200, $api);
 		return $api;
 		return $api;
 	}
 	}
-}
+}