Linking to new ffprobe json file on VideoPage.

This commit is contained in:
Roland 2026-02-08 10:29:08 -07:00
parent 3a1d366c5c
commit 3cfba32c29
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680

View file

@ -241,19 +241,15 @@ function VideoPage({videoFile, prevFile, nextFile, fetchVideo, ...props}) {
</Tab.Pane>
};
const getFile = (suffix) => videoFile.files.find(i => i.path.toLowerCase().endsWith(suffix));
const {poster_file, info_json_file} = video;
const ffprobeJsonFile = getFile('.ffprobe.json');
const filesPane = {
menuItem: 'Files', render: () => <Tab.Pane>
<h3>Video File</h3>
{videoFileLink(video['video_path'])}
<h4>Info JSON File</h4>
{info_json_file &&
<PreviewPath path={info_json_file['path']} mimetype={info_json_file['mimetype']} taggable={false}>
{info_json_file['path']}
</PreviewPath>
}
<h4>Caption Files</h4>
{caption_files &&
caption_files.map(i => <p key={i['path']}><PreviewPath {...i} taggable={false}>
@ -268,6 +264,20 @@ function VideoPage({videoFile, prevFile, nextFile, fetchVideo, ...props}) {
</PreviewPath>
}
<h4>Info JSON File</h4>
{info_json_file &&
<PreviewPath path={info_json_file['path']} mimetype={info_json_file['mimetype']} taggable={false}>
{info_json_file['path']}
</PreviewPath>
}
<h4>ffprobe JSON File</h4>
{ffprobeJsonFile ?
<PreviewPath path={ffprobeJsonFile['path']} mimetype={ffprobeJsonFile['mimetype']} taggable={false}>
{ffprobeJsonFile['path']}
</PreviewPath> : 'No file'
}
<h4>Directory</h4>
{videoFileLink(videoFile['directory'], true)}
</Tab.Pane>