mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Update
This commit is contained in:
parent
131dbe03f8
commit
995c3d8114
1 changed files with 13 additions and 2 deletions
|
@ -251,8 +251,19 @@ if (!empty($matches)) {
|
||||||
|
|
||||||
_error_log("Create dir: {$directory}");
|
_error_log("Create dir: {$directory}");
|
||||||
make_path($directory);
|
make_path($directory);
|
||||||
if(!is_dir($directory)){
|
if (!is_dir($directory)) {
|
||||||
die('error on create dir');
|
mkdir($directory);
|
||||||
|
}
|
||||||
|
if (!is_dir($directory)) {
|
||||||
|
$msg = "could not create dir $directory";
|
||||||
|
_error_log($msg);
|
||||||
|
|
||||||
|
echo json_encode([
|
||||||
|
'error' => true,
|
||||||
|
'msg' => $msg,
|
||||||
|
'directory' => $directory,
|
||||||
|
]);
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
_error_log("matches not found: {$ffmpegCommand}");
|
_error_log("matches not found: {$ffmpegCommand}");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue