mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-25 07:35:48 -07:00
Update playback_m3u.php
This commit is contained in:
parent
af96112723
commit
93056a5ef3
1 changed files with 2 additions and 3 deletions
|
@ -109,9 +109,8 @@ foreach ($m3uData as $entry) {
|
|||
return $e->codec_type === 'audio';
|
||||
});
|
||||
$audioDub = array_map(function ($stream) {
|
||||
global $lang;
|
||||
if (!isset($stream->tags)) {
|
||||
$result = $lang['UNKNOWN'];
|
||||
$result = null;
|
||||
} else {
|
||||
if (isset($stream->tags->title)) {
|
||||
$result = $stream->tags->language . ' (' . $stream->tags->title . ') [Каналов: ' . $stream->channels . ' | Битрейт: ' . $stream->bit_rate . ' ]';
|
||||
|
@ -127,7 +126,7 @@ foreach ($m3uData as $entry) {
|
|||
'FILESIZE' => sprintf($lang['FILESIZE'] . ': %s', humn_size($ffpInfo->format->size)),
|
||||
'RESOLUTION' => (!$isAudio && isset($videoCodecInfo)) ? sprintf($lang['RESOLUTION'], $videoCodecInfo->width . 'x' . $videoCodecInfo->height) : '',
|
||||
'VIDEO_CODEC' => (!$isAudio && isset($videoCodecInfo->codec_name)) ? sprintf($lang['VIDEO_CODEC'], mb_strtoupper($videoCodecInfo->codec_name, 'UTF-8')) : '',
|
||||
'AUDIO_DUB' => implode('<br>', $audioDub)
|
||||
'AUDIO_DUB' => !is_null($audioDub) ? implode('<br>', $audioDub) : ''
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue