mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Linking to new ffprobe json file on VideoPage.
This commit is contained in:
parent
3a1d366c5c
commit
3cfba32c29
1 changed files with 17 additions and 7 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue