diff --git a/src/TorrServerAPI.php b/src/TorrServerAPI.php index f2ead8780..151a0ec86 100644 --- a/src/TorrServerAPI.php +++ b/src/TorrServerAPI.php @@ -229,6 +229,7 @@ class TorrServerAPI if ($curl->httpStatusCode === 200 && !empty($response)) { CACHE('tr_cache')->set("ffprobe_m3u_$attach_id", $response, 3600); } else { + $response->{$index} = $curl->httpStatusCode; bb_log("TorrServer (ERROR) [$this->url]: Response code: {$curl->httpStatusCode}\n", $this->logFile); } $curl->close();