1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
Daniel Neto 2024-08-30 15:44:47 -03:00
parent c57d7ed1c8
commit 7aba074282
2 changed files with 4 additions and 3 deletions

View file

@ -14,8 +14,9 @@ foreach ($videos as $value) {
// Check if the video file is corrupted // Check if the video file is corrupted
$result = Video::isVideoFileCorrupted($value['id']); $result = Video::isVideoFileCorrupted($value['id']);
if (!$result['isValid']) { if (!$result['isValid']) {
echo "Video ID={$value['id']} Title={$value['title']} - reason: {$result['msg']}" . PHP_EOL; echo "ERROR Video ID={$value['id']} Title={$value['title']} - reason: {$result['msg']}" . PHP_EOL;
continue; }else{
echo "SUCCESS Video ID={$value['id']} Title={$value['title']}" . PHP_EOL;
} }
} }

View file

@ -7241,7 +7241,7 @@ if (!class_exists('Video')) {
$result['videoPath'] = $paths['path']; $result['videoPath'] = $paths['path'];
$result['videoUrl'] = $paths['url']; $result['videoUrl'] = $paths['url'];
if (!file_exists($paths['path'])) { if (!file_exists($paths['path'])) {
$result['msg'] = 'Video file does not exist '.json_encode($paths); $result['msg'] = "Video file does not exist filename={$video['filename']} ".json_encode($paths);
return $result; return $result;
} }