Fix: video convert with cron if nothing to convert
This commit is contained in:
parent
a4b7b4d83f
commit
f67fb9bff2
1 changed files with 24 additions and 16 deletions
|
@ -16,6 +16,14 @@
|
||||||
$argv = convertWithCron();
|
$argv = convertWithCron();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If array index 1 and 3 is empty so the file is
|
||||||
|
* written anyway (with empty data in files/log/.log)
|
||||||
|
*/
|
||||||
|
if ( (empty($argv[1])) and (empty($argv[3])) ){
|
||||||
|
die();
|
||||||
|
}
|
||||||
|
|
||||||
//error_reporting(E_ALL);
|
//error_reporting(E_ALL);
|
||||||
#file_put_contents('__argv__', $argv[1]."\n".$argv[2]."\n".$argv[3]."\n".$argv[4]."\n");
|
#file_put_contents('__argv__', $argv[1]."\n".$argv[2]."\n".$argv[3]."\n".$argv[4]."\n");
|
||||||
logData(json_encode($argv),"argvs");
|
logData(json_encode($argv),"argvs");
|
||||||
|
|
Loading…
Add table
Reference in a new issue