Ajouter un log pour afficher le chemin de la vidéo dans la route de récupération
This commit is contained in:
@@ -271,6 +271,7 @@ router.get('/videos/file/:video_id', (req, res) => {
|
|||||||
return res.status(400).json({ error: 'Video not yet produced' });
|
return res.status(400).json({ error: 'Video not yet produced' });
|
||||||
}
|
}
|
||||||
const videoPath = video.video_path;
|
const videoPath = video.video_path;
|
||||||
|
console.log('Video path:', videoPath);
|
||||||
fs.access(videoPath, fs.constants.F_OK, (err) => {
|
fs.access(videoPath, fs.constants.F_OK, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error('Video not found:', err);
|
console.error('Video not found:', err);
|
||||||
|
|||||||
Reference in New Issue
Block a user