diff --git a/classes/VideoDownload.php b/classes/VideoDownload.php index 31121c3..e1ba707 100644 --- a/classes/VideoDownload.php +++ b/classes/VideoDownload.php @@ -40,7 +40,7 @@ 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)) { + } elseif (!$this->checkCommand([$this->config->python, '--version'])) { throw new \Exception("Can't find Python at ".$this->config->python); } $this->procBuilder->setPrefix(