From: Jaime Marquínez Ferrándiz Date: Fri, 11 Oct 2013 09:46:41 +0000 (+0200) Subject: Merge pull request #1565 from rzhxeo/rtmpdump_test X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=81d7f1928cf548160a101f23c5571cce11403f8d;hp=bc4f29170f7fe1088f63fdc42f225656d3680c5e;p=youtube-dl Merge pull request #1565 from rzhxeo/rtmpdump_test Only download 1 sec. with rtmpdump in test mode --- 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: