diff --git a/classes/VideoDownload.php b/classes/VideoDownload.php index 498a56b..74b927b 100644 --- a/classes/VideoDownload.php +++ b/classes/VideoDownload.php @@ -33,6 +33,9 @@ class VideoDownload { $this->config = Config::getInstance(); $this->procBuilder = new ProcessBuilder(); + if (!is_file($this->config->youtubedl)) { + throw new \Exception("Can't find youtube-dl at ".$this->config->youtubedl); + } $this->procBuilder->setPrefix( array_merge( [$this->config->python, $this->config->youtubedl],