From 5431f1fa517e01a40584bedd6dc743f27feef415 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 31 Aug 2024 20:38:21 +0700 Subject: [PATCH] Updated --- src/TorrServerAPI.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TorrServerAPI.php b/src/TorrServerAPI.php index f2ead8780..9b08725c1 100644 --- a/src/TorrServerAPI.php +++ b/src/TorrServerAPI.php @@ -224,7 +224,7 @@ class TorrServerAPI $curl->setTimeout($bb_cfg['torr_server']['timeout']); $curl->setHeader('Accept', 'application/json'); - $curl->get($this->url . $this->endpoints['ffprobe'] . '/' . bin2hex($hash) . '/' . $index); + $curl->get($this->url . $this->endpoints['ffprobe'] . '/' . $hash . '/' . $index); $response->{$index} = $curl->response; if ($curl->httpStatusCode === 200 && !empty($response)) { CACHE('tr_cache')->set("ffprobe_m3u_$attach_id", $response, 3600); @@ -251,7 +251,7 @@ class TorrServerAPI $curl->setTimeout($bb_cfg['torr_server']['timeout']); $curl->setHeader('Accept', 'application/octet-stream'); - $curl->get($this->url . $this->endpoints['stream'], ['link' => bin2hex($hash)]); + $curl->get($this->url . $this->endpoints['stream'], ['link' => $hash]); $isSuccess = $curl->httpStatusCode === 200; if (!$isSuccess) { bb_log("TorrServer (ERROR) [$this->url]: Response code: {$curl->httpStatusCode} | Content: {$curl->response}\n", $this->logFile);