From dcec7115bcd4880f945b52507c8bb1a3798e6b95 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sun, 12 Nov 2017 15:14:59 +0100 Subject: [PATCH] Check that Python can be executed --- classes/VideoDownload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(