Throw exception is Python is missing
This commit is contained in:
parent
b6f8e585be
commit
cb7dad19dc
1 changed files with 2 additions and 0 deletions
|
@ -39,6 +39,8 @@ class VideoDownload
|
|||
$this->procBuilder = new ProcessBuilder();
|
||||
if (!is_file($this->config->youtubedl)) {
|
||||
throw new \Exception("Can't find youtube-dl at ".$this->config->youtubedl);
|
||||
} elseif (!is_file($this->config->python)) {
|
||||
throw new \Exception("Can't find Python at ".$this->config->python);
|
||||
}
|
||||
$this->procBuilder->setPrefix(
|
||||
array_merge(
|
||||
|
|
Loading…
Reference in a new issue