浏览代码

make rtmpdump inherit the verbose option for debugging

Filippo Valsorda 12 年之前
父节点
当前提交
f008688520
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      youtube_dl/FileDownloader.py

+ 1 - 0
youtube_dl/FileDownloader.py

@@ -763,6 +763,7 @@ class FileDownloader(object):
         # the connection was interrumpted and resuming appears to be
         # the connection was interrumpted and resuming appears to be
         # possible. This is part of rtmpdump's normal usage, AFAIK.
         # possible. This is part of rtmpdump's normal usage, AFAIK.
         basic_args = ['rtmpdump', '-q', '-r', url, '-o', tmpfilename]
         basic_args = ['rtmpdump', '-q', '-r', url, '-o', tmpfilename]
+        if self.params.get('verbose', False): basic_args[1] = '-v'
         if player_url is not None:
         if player_url is not None:
             basic_args += ['-W', player_url]
             basic_args += ['-W', player_url]
         if page_url is not None:
         if page_url is not None: