From 724f3bb31a80ad06cce424346e15759d04bfdc44 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Mon, 11 Apr 2016 22:41:25 +0200 Subject: [PATCH] Download only one file --- classes/Config.php | 2 +- composer.json | 6 +++--- composer.lock | 8 ++++---- config.example.yml | 2 ++ 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/classes/Config.php b/classes/Config.php index 77cfa57..cb57e67 100644 --- a/classes/Config.php +++ b/classes/Config.php @@ -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 = ''; diff --git a/composer.json b/composer.json index 86c5e22..22f0f25 100644 --- a/composer.json +++ b/composer.json @@ -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" } } }, { diff --git a/composer.lock b/composer.lock index 8a229b5..7984870 100644 --- a/composer.lock +++ b/composer.lock @@ -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" }, diff --git a/config.example.yml b/config.example.yml index 23207ea..deff29b 100644 --- a/config.example.yml +++ b/config.example.yml @@ -4,6 +4,8 @@ params: - --no-playlist - --no-warnings - -f best[protocol^=http] + - --playlist-end + - 1 curl_params: convert: false avconv: vendor/bin/ffmpeg