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';
$cli->setArg(null, $url);
$cli->execute();
}
+ if (!file_exists($file)) {
+ $cli->debug();
+ }
return $file;
}
}
\ No newline at end of file