mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-10 00:58:17 +02:00
make rtmpdump inherit the verbose option for debugging
This commit is contained in:
parent
5b68ea215b
commit
f008688520
@ -763,6 +763,7 @@ def _download_with_rtmpdump(self, filename, url, player_url, page_url, play_path
|
|||||||
# 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:
|
||||||
|
Loading…
Reference in New Issue
Block a user