Corriger la récupération du chemin vidéo en utilisant video_file au lieu de video_path

This commit is contained in:
2025-02-12 11:40:42 +01:00
parent 7652a1ea64
commit 3f5317ad18

View File

@@ -270,7 +270,7 @@ router.get('/videos/file/:video_id', (req, res) => {
if (video.status === 0) {
return res.status(400).json({ error: 'Video not yet produced' });
}
const videoPath = video.video_path;
const videoPath = video.video_file;
console.log('Video path:', videoPath);
fs.access(videoPath, fs.constants.F_OK, (err) => {
if (err) {