Download only one file

This commit is contained in:
Pierre Rudloff 2016-04-11 22:41:25 +02:00
parent caaa70d764
commit 724f3bb31a
4 changed files with 10 additions and 8 deletions

View file

@ -31,7 +31,7 @@ class Config
public $youtubedl = 'vendor/rg3/youtube-dl/youtube_dl/__main__.py';
public $python = '/usr/bin/python';
public $params = array('--no-playlist', '--no-warnings', '-f best');
public $params = array('--no-playlist', '--no-warnings', '-f best', '--playlist-end', 1);
public $convert = false;
public $avconv = 'vendor/bin/ffmpeg';
public $curl_params = '';

View file

@ -6,7 +6,7 @@
"type": "project",
"require": {
"smarty/smarty": "~3.1.29",
"rg3/youtube-dl": "2016.04.05",
"rg3/youtube-dl": "2016.04.06",
"slim/slim": "~3.3.0",
"mathmarques/smarty-view": "~1.1.0",
"symfony/yaml": "~3.0.0",
@ -28,11 +28,11 @@
"type": "package",
"package": {
"name": "rg3/youtube-dl",
"version": "2016.04.05",
"version": "2016.04.06",
"source": {
"url": "https://github.com/rg3/youtube-dl.git",
"type": "git",
"reference": "2016.04.05"
"reference": "2016.04.06"
}
}
}, {

8
composer.lock generated
View file

@ -4,8 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "829ac07cae5bc43ef0ad3f5e5be618c5",
"content-hash": "a7131399bb03f78ba0dcfd8ab7e98d59",
"hash": "0a09fa0b589ef92192be06b640a2e7e5",
"content-hash": "7e43db00a5d5e02e3bcd909198e0f98f",
"packages": [
{
"name": "container-interop/container-interop",
@ -364,11 +364,11 @@
},
{
"name": "rg3/youtube-dl",
"version": "2016.04.05",
"version": "2016.04.06",
"source": {
"type": "git",
"url": "https://github.com/rg3/youtube-dl.git",
"reference": "2016.04.05"
"reference": "2016.04.06"
},
"type": "library"
},

View file

@ -4,6 +4,8 @@ params:
- --no-playlist
- --no-warnings
- -f best[protocol^=http]
- --playlist-end
- 1
curl_params:
convert: false
avconv: vendor/bin/ffmpeg