]> _ Git - cubist_util.git/commitdiff
wip #7232 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 1 Apr 2025 09:24:44 +0000 (11:24 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 1 Apr 2025 09:24:44 +0000 (11:24 +0200)
src/YoutubeDL.php

index b370fc037e59a05ca30ed585b7e7cb01a1b0ae20..4cc0a4eae2544dfc07d7c3d27bfad7454fe995d8 100644 (file)
@@ -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