mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Update
This commit is contained in:
parent
c57d7ed1c8
commit
7aba074282
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue