Check that Python can be executed
This commit is contained in:
parent
383ffca6d4
commit
dcec7115bc
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class VideoDownload
|
||||||
$this->procBuilder = new ProcessBuilder();
|
$this->procBuilder = new ProcessBuilder();
|
||||||
if (!is_file($this->config->youtubedl)) {
|
if (!is_file($this->config->youtubedl)) {
|
||||||
throw new \Exception("Can't find youtube-dl at ".$this->config->youtubedl);
|
throw new \Exception("Can't find youtube-dl at ".$this->config->youtubedl);
|
||||||
} elseif (!is_file($this->config->python)) {
|
} elseif (!$this->checkCommand([$this->config->python, '--version'])) {
|
||||||
throw new \Exception("Can't find Python at ".$this->config->python);
|
throw new \Exception("Can't find Python at ".$this->config->python);
|
||||||
}
|
}
|
||||||
$this->procBuilder->setPrefix(
|
$this->procBuilder->setPrefix(
|
||||||
|
|
Loading…
Reference in a new issue