Просмотр исходного кода

fix sabnzbd homepage queue request options

Marcel Hofer 2 лет назад
Родитель
Сommit
4d2e6f02f0
1 измененных файлов с 2 добавлено и 2 удалено
  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 = $url . '/api?mode=history&output=json&limit=100&apikey=' . $this->config['sabnzbdToken'];
 		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);
 			if ($response->success) {
 				$api['content']['historyItems'] = json_decode($response->body, true);
@@ -211,4 +211,4 @@ trait SabNZBdHomepageItem
 		$this->setAPIResponse('success', null, 200, $api);
 		return $api;
 	}
-}
+}