mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Minor improvements (#1713)
* Minor improvements
* Update init_bb.php
* Updated
* Revert "Updated"
This reverts commit af83788c22
.
* Update CHANGELOG.md
This commit is contained in:
parent
fd951a27fa
commit
b27fa94ee8
18 changed files with 31 additions and 31 deletions
|
@ -90,13 +90,13 @@ switch ($mode) {
|
|||
// Log action
|
||||
$log_msg = sprintf($lang['TOR_STATUS_LOG_ACTION'], $bb_cfg['tor_icons'][$new_status] . ' <b> ' . $lang['TOR_STATUS_NAME'][$new_status] . '</b>', $bb_cfg['tor_icons'][$tor['tor_status']] . ' <b> ' . $lang['TOR_STATUS_NAME'][$tor['tor_status']] . '</b>');
|
||||
if ($comment && $comment != $lang['COMMENT']) {
|
||||
$log_msg .= "<br>{$lang['COMMENT']}: <b>$comment</b>.";
|
||||
$log_msg .= "<br/>{$lang['COMMENT']}: <b>$comment</b>.";
|
||||
}
|
||||
$log_action->mod('mod_topic_change_tor_status', [
|
||||
'forum_id' => $tor['forum_id'],
|
||||
'topic_id' => $tor['topic_id'],
|
||||
'topic_title' => $tor['topic_title'],
|
||||
'log_msg' => $log_msg . '<br>-------------',
|
||||
'log_msg' => $log_msg . '<br/>-------------',
|
||||
]);
|
||||
|
||||
$this->response['status'] = $bb_cfg['tor_icons'][$new_status] . ' <b> ' . $lang['TOR_STATUS_NAME'][$new_status] . '</b> · ' . profile_url($userdata) . ' · <i>' . delta_time(TIMENOW) . $lang['TOR_BACK'] . '</i>';
|
||||
|
|
|
@ -50,27 +50,27 @@ if (isset($ffpInfo->streams)) {
|
|||
$audioDub = array_map(function ($stream) {
|
||||
global $lang;
|
||||
|
||||
$result = '<span class="warnColor2">' . sprintf($lang['AUDIO_TRACK'], (!isset($stream->index) || $stream->index === 0) ? 1 : $stream->index) . '</span><br>';
|
||||
$result = '<span class="warnColor2">' . sprintf($lang['AUDIO_TRACK'], (!isset($stream->index) || $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>';
|
||||
$result .= '<br/>';
|
||||
}
|
||||
|
||||
if (!empty($stream->codec_name)) {
|
||||
$result .= sprintf($lang['AUDIO_CODEC'], $stream->codec_long_name, mb_strtoupper($stream->codec_name, 'UTF-8')) . '<br>';
|
||||
$result .= sprintf($lang['AUDIO_CODEC'], $stream->codec_long_name, mb_strtoupper($stream->codec_name, 'UTF-8')) . '<br/>';
|
||||
}
|
||||
if (!empty($stream->bit_rate)) {
|
||||
$result .= sprintf($lang['BITRATE'], humn_bitrate((int)$stream->bit_rate)) . '<br>';
|
||||
$result .= sprintf($lang['BITRATE'], humn_bitrate((int)$stream->bit_rate)) . '<br/>';
|
||||
}
|
||||
if (!empty($stream->sample_rate)) {
|
||||
$result .= sprintf($lang['SAMPLE_RATE'], humn_sample_rate((int)$stream->sample_rate)) . '<br>';
|
||||
$result .= sprintf($lang['SAMPLE_RATE'], humn_sample_rate((int)$stream->sample_rate)) . '<br/>';
|
||||
}
|
||||
if (!empty($stream->channels)) {
|
||||
$result .= sprintf($lang['CHANNELS'], $stream->channels) . '<br>';
|
||||
$result .= sprintf($lang['CHANNELS'], $stream->channels) . '<br/>';
|
||||
}
|
||||
if (!empty($stream->channel_layout)) {
|
||||
$result .= sprintf($lang['CHANNELS_LAYOUT'], $stream->channel_layout);
|
||||
|
@ -90,10 +90,10 @@ if (isset($ffpInfo->streams)) {
|
|||
// Validate output data
|
||||
$result = '<hr>';
|
||||
if (!empty($data['resolution'])) {
|
||||
$result .= $data['resolution'] . '<br>';
|
||||
$result .= $data['resolution'] . '<br/>';
|
||||
}
|
||||
if (!empty($data['filesize'])) {
|
||||
$result .= $data['filesize'] . '<br>';
|
||||
$result .= $data['filesize'] . '<br/>';
|
||||
}
|
||||
if (!empty($data['video_codec'])) {
|
||||
$result .= $data['video_codec'];
|
||||
|
|
|
@ -49,7 +49,7 @@ switch ($mode) {
|
|||
'forum_id' => $tor['forum_id'],
|
||||
'topic_id' => $tor['topic_id'],
|
||||
'topic_title' => $tor['topic_title'],
|
||||
'log_msg' => $log_msg . '<br>-------------',
|
||||
'log_msg' => $log_msg . '<br/>-------------',
|
||||
]);
|
||||
}
|
||||
$this->response['status'] = $bb_cfg['tor_icons'][$status];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue