Download youtube-dl with composer (fixes #35)
This commit is contained in:
parent
347ec92f35
commit
05b144cb7b
5 changed files with 89 additions and 6 deletions
|
@ -64,7 +64,7 @@ Class VideoDownload
|
|||
* */
|
||||
static function getFilename($url, $format=null)
|
||||
{
|
||||
$cmd=PYTHON.' youtube-dl';
|
||||
$cmd=PYTHON.' '.YOUTUBE_DL;
|
||||
if (isset($format)) {
|
||||
$cmd .= ' -f '.escapeshellarg($format);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue