diff options
| author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-10-11 11:46:41 +0200 | 
|---|---|---|
| committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-10-11 12:40:18 +0200 | 
| commit | 81d7f1928cf548160a101f23c5571cce11403f8d (patch) | |
| tree | 2bef2242b0d56d06b891f8407f6bc420e6aee55a /youtube_dl/FileDownloader.py | |
| parent | bc4f29170f7fe1088f63fdc42f225656d3680c5e (diff) | |
| parent | 8e4f824365543e394286742fcdb4c0a548becc8e (diff) | |
Merge pull request #1565 from rzhxeo/rtmpdump_test
Only download 1 sec. with rtmpdump in test mode
Diffstat (limited to 'youtube_dl/FileDownloader.py')
| -rw-r--r-- | youtube_dl/FileDownloader.py | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py index d6673fd3a..2cda5d52a 100644 --- a/youtube_dl/FileDownloader.py +++ b/youtube_dl/FileDownloader.py @@ -291,6 +291,8 @@ class FileDownloader(object):              basic_args += ['--playpath', play_path]          if tc_url is not None:              basic_args += ['--tcUrl', url] +        if self.params.get('test', False): +            basic_args += ['--stop', '1']          args = basic_args + [[], ['--resume', '--skip', '1']][self.params.get('continuedl', False)]          if self.params.get('verbose', False):              try: | 
