mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
Merge pull request #1565 from rzhxeo/rtmpdump_test
Only download 1 sec. with rtmpdump in test mode
This commit is contained in:
commit
81d7f1928c
1 changed files with 2 additions and 0 deletions
|
@ -291,6 +291,8 @@ def _download_with_rtmpdump(self, filename, url, player_url, page_url, play_path
|
|||
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:
|
||||
|
|
Loading…
Reference in a new issue