From eb16e5394648b21132cc2dbe0b7075b7972d39c0 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 27 Mar 2025 21:28:16 +0300 Subject: [PATCH] Update TorrServerAPI.php --- src/TorrServerAPI.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/TorrServerAPI.php b/src/TorrServerAPI.php index dcfeefae5..78b57adb1 100644 --- a/src/TorrServerAPI.php +++ b/src/TorrServerAPI.php @@ -85,7 +85,7 @@ class TorrServerAPI ]); $isSuccess = $curl->httpStatusCode === 200; if (!$isSuccess) { - bb_log("TorrServer (ERROR) [$this->url]: Response code: {$curl->httpStatusCode} | Content: {$curl->response}\n"); + bb_log("TorrServer (ERROR) [$this->url]: Response code: {$curl->httpStatusCode} | Content: {$curl->response}" . LOG_LF); } $curl->close(); @@ -140,7 +140,7 @@ class TorrServerAPI file_put_contents($m3uFile, $curl->response); } } else { - bb_log("TorrServer (ERROR) [$this->url]: Response code: {$curl->httpStatusCode} | Content: {$curl->response}\n"); + bb_log("TorrServer (ERROR) [$this->url]: Response code: {$curl->httpStatusCode} | Content: {$curl->response}" . LOG_LF); } $curl->close(); @@ -222,7 +222,7 @@ class TorrServerAPI if ($curl->httpStatusCode === 200 && !empty($response->{$index})) { CACHE('tr_cache')->set("ffprobe_m3u_$attach_id", $response, 3600); } else { - bb_log("TorrServer (ERROR) [$this->url]: Response code: {$curl->httpStatusCode}\n"); + bb_log("TorrServer (ERROR) [$this->url]: Response code: {$curl->httpStatusCode}" . LOG_LF); } $curl->close(); } @@ -247,7 +247,7 @@ class TorrServerAPI $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"); + bb_log("TorrServer (ERROR) [$this->url]: Response code: {$curl->httpStatusCode} | Content: {$curl->response}" . LOG_LF); } $curl->close();