isUser
})
})
+
+ router.get('/video-files/:id', async (req, res) => {
+ const details = await peertubeHelpers.videos.getFiles(req.params.id)
+ if (!details) return res.sendStatus(404)
+
+ return res.json(details)
+ })
+
+ router.get('/ffprobe', async (req, res) => {
+ const result = await peertubeHelpers.videos.ffprobe(req.query.path)
+ if (!result) return res.sendStatus(404)
+
+ return res.json(result)
+ })
}
}