From: Vincent Vanwaelscappel Date: Tue, 1 Apr 2025 09:24:44 +0000 (+0200) Subject: wip #7232 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=90cd71912334655e0c383c08a52fbf123412da28;p=cubist_util.git wip #7232 @0.5 --- diff --git a/src/YoutubeDL.php b/src/YoutubeDL.php index b370fc0..4cc0a4e 100644 --- a/src/YoutubeDL.php +++ b/src/YoutubeDL.php @@ -27,7 +27,7 @@ class YoutubeDL return self::_download($url, $path, true); } - protected static function _download($url, $path, $onlyAudio = false, $format = 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4',$start=null, $end=null) + protected static function _download($url, $path, $onlyAudio = false, $format = 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4', $start = null, $end = null) { $ext = $onlyAudio ? 'mp3' : 'mp4'; @@ -53,6 +53,9 @@ class YoutubeDL $cli->setArg(null, $url); $cli->execute(); } + if (!file_exists($file)) { + $cli->debug(); + } return $file; } } \ No newline at end of file