mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
Update playback_m3u.php
This commit is contained in:
parent
7be4cbe384
commit
48dcc94ea1
1 changed files with 22 additions and 15 deletions
|
@ -111,24 +111,31 @@ foreach ($m3uData as $entry) {
|
|||
$audioDub = array_map(function ($stream) {
|
||||
global $lang;
|
||||
|
||||
if (!isset($stream->tags)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$result = '<span class="warnColor2">' . sprintf($lang['AUDIO_TRACK'], $stream->index) . '</span><br>';
|
||||
|
||||
$result = '<span class="warnColor2">' . sprintf($lang['AUDIO_TRACK'], ($stream->index === 0) ? 1 : $stream->index) . '</span><br>';
|
||||
if (isset($stream->tags->language)) {
|
||||
if (isset($stream->tags->title)) {
|
||||
$result .= '<b>' . mb_strtoupper($stream->tags->language, 'UTF-8') . ' (' . $stream->tags->title . ')' . '</b>';
|
||||
} else {
|
||||
$result .= '<b>' . mb_strtoupper($stream->tags->language, 'UTF-8') . '</b>';
|
||||
}
|
||||
|
||||
$result .= '<br>';
|
||||
}
|
||||
|
||||
if (!empty($stream->codec_name)) {
|
||||
$result .= sprintf($lang['AUDIO_CODEC'], mb_strtoupper($stream->codec_name, 'UTF-8')) . '<br>';
|
||||
}
|
||||
if (!empty($stream->bit_rate)) {
|
||||
$result .= sprintf($lang['BITRATE'], humn_bitrate($stream->bit_rate)) . '<br>';
|
||||
}
|
||||
if (!empty($stream->sample_rate)) {
|
||||
$result .= sprintf($lang['SAMPLE_RATE'], $stream->sample_rate) . '<br>';
|
||||
}
|
||||
if (!empty($stream->channels)) {
|
||||
$result .= sprintf($lang['CHANNELS'], $stream->channels) . '<br>';
|
||||
}
|
||||
if (!empty($stream->channel_layout)) {
|
||||
$result .= sprintf($lang['CHANNELS_LAYOUT'], $stream->channel_layout);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}, $audioTracks);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue