mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-24 07:05:47 -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;
|
return $result;
|
||||||
}, $audioTracks);
|
}, $audioTracks);
|
||||||
|
|
||||||
$template->assign_block_vars('m3ulist.ffprobe', [
|
$data = [
|
||||||
'FILESIZE' => sprintf($lang['FILESIZE'] . ': <b>%s</b>', humn_size($ffpInfo->format->size)),
|
'filesize' => sprintf($lang['FILESIZE'] . ': <b>%s</b>', humn_size($ffpInfo->format->size)),
|
||||||
'RESOLUTION' => (!$isAudio && isset($videoCodecInfo)) ? sprintf($lang['RESOLUTION'], $videoCodecInfo->width . 'x' . $videoCodecInfo->height) : '',
|
'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')) : '',
|
'video_codec' => (!$isAudio && isset($videoCodecInfo->codec_name)) ? sprintf($lang['VIDEO_CODEC'], mb_strtoupper($videoCodecInfo->codec_name, 'UTF-8')) : '',
|
||||||
'AUDIO_DUB' => implode('<hr>', $audioDub)
|
'audio_dub' => implode('<hr>', $audioDub)
|
||||||
]);
|
];
|
||||||
|
|
||||||
|
$this->response['ffprobe_data'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->response['ffprobe_data'] = '
|
|
||||||
|
|
||||||
';
|
|
||||||
|
|
|
@ -26,7 +26,9 @@
|
||||||
<tr class="{m3ulist.ROW_CLASS} tCenter">
|
<tr class="{m3ulist.ROW_CLASS} tCenter">
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
ajax.callback.ffprobe_info = function (data) {
|
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>
|
</script>
|
||||||
<td>{m3ulist.ROW_NUMBER}</td>
|
<td>{m3ulist.ROW_NUMBER}</td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue