瀏覽代碼

Merge pull request #1565 from rzhxeo/rtmpdump_test

Only download 1 sec. with rtmpdump in test mode
Jaime Marquínez Ferrándiz 12 年之前
父節點
當前提交
81d7f1928c
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      youtube_dl/FileDownloader.py

+ 2 - 0
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: