]> git.bitcoin.ninja Git - youtube-dl/commitdiff
make rtmpdump inherit the verbose option for debugging
authorFilippo Valsorda <filippo.valsorda@gmail.com>
Mon, 20 May 2013 09:54:21 +0000 (11:54 +0200)
committerFilippo Valsorda <filippo.valsorda@gmail.com>
Mon, 20 May 2013 09:54:21 +0000 (11:54 +0200)
youtube_dl/FileDownloader.py

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