diff --git a/playback_m3u.php b/playback_m3u.php index db73f16dc..20d9fe050 100644 --- a/playback_m3u.php +++ b/playback_m3u.php @@ -108,17 +108,19 @@ foreach ($m3uData as $entry) { $audioTracks = array_filter($ffpInfo->streams, function ($e) { return $e->codec_type === 'audio'; }); + dump($audioTracks); $audioDub = array_map(function ($stream) { if (!isset($stream->tags)) { - $result = null; - } else { - if (isset($stream->tags->title)) { - $result = $stream->tags->language . ' (' . $stream->tags->title . ') [Каналов: ' . $stream->channels . ' | Битрейт: ' . $stream->bit_rate . ' ]'; - } else { - $result = $stream->tags->language; - } + return null; } + if (isset($stream->tags->title)) { + $result = $stream->tags->language . ' (' . $stream->tags->title . ')'; + } else { + $result = $stream->tags->language; + } + $result .= '1'; + return $result; }, $audioTracks); diff --git a/src/TorrServerAPI.php b/src/TorrServerAPI.php index 47a334d43..f2ead8780 100644 --- a/src/TorrServerAPI.php +++ b/src/TorrServerAPI.php @@ -229,7 +229,7 @@ class TorrServerAPI if ($curl->httpStatusCode === 200 && !empty($response)) { CACHE('tr_cache')->set("ffprobe_m3u_$attach_id", $response, 3600); } else { - bb_log("TorrServer (ERROR) [$this->url]: Response code: {$curl->httpStatusCode} | Content: $response\n", $this->logFile); + bb_log("TorrServer (ERROR) [$this->url]: Response code: {$curl->httpStatusCode}\n", $this->logFile); } $curl->close(); }