mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 10:07:08 -05:00 
			
		
		
		
	Merge pull request #1565 from rzhxeo/rtmpdump_test
Only download 1 sec. with rtmpdump in test mode
This commit is contained in:
		@@ -291,6 +291,8 @@ class FileDownloader(object):
 | 
				
			|||||||
            basic_args += ['--playpath', play_path]
 | 
					            basic_args += ['--playpath', play_path]
 | 
				
			||||||
        if tc_url is not None:
 | 
					        if tc_url is not None:
 | 
				
			||||||
            basic_args += ['--tcUrl', url]
 | 
					            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)]
 | 
					        args = basic_args + [[], ['--resume', '--skip', '1']][self.params.get('continuedl', False)]
 | 
				
			||||||
        if self.params.get('verbose', False):
 | 
					        if self.params.get('verbose', False):
 | 
				
			||||||
            try:
 | 
					            try:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user