mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Updated
This commit is contained in:
parent
e9032dc6a8
commit
47e7779e11
2 changed files with 11 additions and 11 deletions
|
@ -76,14 +76,12 @@ if (isset($ffpInfo->streams)) {
|
|||
return $result;
|
||||
}, $audioTracks);
|
||||
|
||||
$template->assign_block_vars('m3ulist.ffprobe', [
|
||||
'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'], mb_strtoupper($videoCodecInfo->codec_name, 'UTF-8')) : '',
|
||||
'AUDIO_DUB' => implode('<hr>', $audioDub)
|
||||
]);
|
||||
$data = [
|
||||
'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'], mb_strtoupper($videoCodecInfo->codec_name, 'UTF-8')) : '',
|
||||
'audio_dub' => implode('<hr>', $audioDub)
|
||||
];
|
||||
|
||||
$this->response['ffprobe_data'] = '';
|
||||
}
|
||||
|
||||
$this->response['ffprobe_data'] = '
|
||||
|
||||
';
|
||||
|
|
|
@ -26,7 +26,9 @@
|
|||
<tr class="{m3ulist.ROW_CLASS} tCenter">
|
||||
<script type="text/javascript">
|
||||
ajax.callback.ffprobe_info = function (data) {
|
||||
$('#ffprobe_{m3ulist.ROW_NUMBER}').html(data.ffprobe_data);
|
||||
if (data.ffprobe_data) {
|
||||
$('#ffprobe_{m3ulist.ROW_NUMBER}').html(data.ffprobe_data);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<td>{m3ulist.ROW_NUMBER}</td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue