Minor improvements (#1715)

* Minor improvements

* Updated

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-12-14 15:38:33 +07:00 committed by GitHub
commit ce138921d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 25 additions and 25 deletions

View file

@ -84,11 +84,11 @@ if (isset($ffpInfo->streams)) {
'filesize' => sprintf($lang['FILESIZE'] . ': <b>%s</b>', 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'], $videoCodecInfo->codec_long_name, mb_strtoupper($videoCodecInfo->codec_name, 'UTF-8')) : '',
'audio_dub' => implode('<hr>', $audioDub)
'audio_dub' => implode('<hr/>', $audioDub)
];
// Validate output data
$result = '<hr>';
$result = '<hr/>';
if (!empty($data['resolution'])) {
$result .= $data['resolution'] . '<br/>';
}
@ -99,7 +99,7 @@ if (isset($ffpInfo->streams)) {
$result .= $data['video_codec'];
}
if (!empty($data['audio_dub'])) {
$result .= '<hr>' . $data['audio_dub'];
$result .= '<hr/>' . $data['audio_dub'];
}
$this->response['ffprobe_data'] = $result;