diff --git a/app/src/components/VideoPlayer.js b/app/src/components/VideoPlayer.js index d3b0d63a..9741510c 100644 --- a/app/src/components/VideoPlayer.js +++ b/app/src/components/VideoPlayer.js @@ -241,19 +241,15 @@ function VideoPage({videoFile, prevFile, nextFile, fetchVideo, ...props}) { }; + 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: () =>

Video File

{videoFileLink(video['video_path'])} -

Info JSON File

- {info_json_file && - - {info_json_file['path']} - - } -

Caption Files

{caption_files && caption_files.map(i =>

@@ -268,6 +264,20 @@ function VideoPage({videoFile, prevFile, nextFile, fetchVideo, ...props}) { } +

Info JSON File

+ {info_json_file && + + {info_json_file['path']} + + } + +

ffprobe JSON File

+ {ffprobeJsonFile ? + + {ffprobeJsonFile['path']} + : 'No file' + } +

Directory

{videoFileLink(videoFile['directory'], true)}