mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	import all IEs when testing to resemble more closely the real env
This commit is contained in:
		| @@ -81,9 +81,8 @@ def generator(test_case): | |||||||
|         params.update(test_case.get('params', {})) |         params.update(test_case.get('params', {})) | ||||||
|  |  | ||||||
|         fd = FileDownloader(params) |         fd = FileDownloader(params) | ||||||
|         fd.add_info_extractor(ie()) |         for ie in youtube_dl.InfoExtractors.gen_extractors(): | ||||||
|         for ien in test_case.get('add_ie', []): |             fd.add_info_extractor(ie) | ||||||
|             fd.add_info_extractor(getattr(youtube_dl.InfoExtractors, ien + 'IE')()) |  | ||||||
|         finished_hook_called = set() |         finished_hook_called = set() | ||||||
|         def _hook(status): |         def _hook(status): | ||||||
|             if status['status'] == 'finished': |             if status['status'] == 'finished': | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Filippo Valsorda
					Filippo Valsorda